Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001732/0.001732, allocations: 117.9 kB / 18.5 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002053/0.002053, allocations: 214.5 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.474/1.474, allocations: 230.5 MB / 254.8 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 75.78 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09116/0.09316, allocations: 53.33 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00288/0.09604, allocations: 1.607 MB / 428.6 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009948/0.09703, allocations: 0.5143 MB / 429.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.666e-05/0.0971, allocations: 3.938 kB / 429.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.049e-05/0.09713, allocations: 3.938 kB / 429.1 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001474/0.09728, allocations: 15.86 kB / 429.2 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002333/0.09751, allocations: 55.81 kB / 429.2 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001356/0.09765, allocations: 71.78 kB / 429.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.659e-05/0.09774, allocations: 11.98 kB / 429.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.09792, allocations: 39.84 kB / 429.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.092e-05/0.09798, allocations: 31.78 kB / 429.4 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.162e-05/0.09801, allocations: 8 kB / 429.4 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.273e-05/0.09805, allocations: 8 kB / 429.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.528e-05/0.09807, allocations: 15.97 kB / 429.4 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.713e-05/0.09812, allocations: 27.8 kB / 429.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001561/0.09828, allocations: 67.72 kB / 429.5 MB, free: 2.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.09828, allocations: 0 / 429.5 MB, free: 2.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.09828, allocations: 4 kB / 429.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.09829, allocations: 0 / 429.5 MB, free: 2.297 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006046/0.09889, allocations: 383.1 kB / 429.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.09895, allocations: 8.031 kB / 429.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.141e-05/0.099, allocations: 42.69 kB / 429.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002161/0.09921, allocations: 20.88 kB / 429.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002648/0.09948, allocations: 188.2 kB / 430.1 MB, free: 1.574 MB / 350.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= sine.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.09959, allocations: 46.23 kB / 430.2 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.73e-05/0.09961, allocations: 8.375 kB / 430.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004044/0.1, allocations: 168.8 kB / 430.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.1, allocations: 0 / 430.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.1, allocations: 4 kB / 430.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.1, allocations: 4 kB / 430.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001233/0.1002, allocations: 27.98 kB / 430.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002104/0.1004, allocations: 186.5 kB / 430.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003133/0.1007, allocations: 166.4 kB / 430.7 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.1008, allocations: 37.7 kB / 430.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.689e-05/0.1008, allocations: 7.938 kB / 430.8 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.1008, allocations: 30.56 kB / 430.8 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.1008, allocations: 0 / 430.8 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003585/0.1012, allocations: 113.5 kB / 430.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.455e-05/0.1013, allocations: 97.11 kB / 431 MB, free: 0.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.1014, allocations: 124.1 kB / 431.1 MB, free: 424 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.1014, allocations: 25.7 kB / 431.2 MB, free: 392 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.77e-05/0.1015, allocations: 92.14 kB / 431.2 MB, free: 296 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.609e-05/0.1015, allocations: 7.938 kB / 431.2 MB, free: 288 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.25e-05/0.1016, allocations: 25.72 kB / 431.3 MB, free: 256 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1017, allocations: 314.8 kB / 431.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.955e-05/0.1018, allocations: 23.98 kB / 431.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.588e-05/0.1019, allocations: 58 kB / 431.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001356/0.102, allocations: 82.06 kB / 431.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.102, allocations: 0 / 431.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001984/0.1022, allocations: 109.6 kB / 431.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.1022, allocations: 8 kB / 431.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.1022, allocations: 0 / 431.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.1022, allocations: 4 kB / 431.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.04e-05/0.1023, allocations: 19.92 kB / 431.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.1023, allocations: 0 / 431.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.362e-05/0.1024, allocations: 11.94 kB / 431.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.1024, allocations: 4 kB / 431.9 MB, free: 15.57 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 ($CLKPRE.sine.startOutput,sine.startOutput,$CLKPRE.sine.counter,sine.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.startOutput,sine.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001064/0.1025, allocations: 117.8 kB / 432 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/0.1026, allocations: 81.58 kB / 432.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.856e-05/0.1027, allocations: 12.38 kB / 432.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1027, allocations: 0 / 432.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.1027, allocations: 0 / 432.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1027, allocations: 4 kB / 432.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001643/0.1029, allocations: 173.6 kB / 432.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.1029, allocations: 3.938 kB / 432.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.387e-05/0.1029, allocations: 8 kB / 432.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.1029, allocations: 7.984 kB / 432.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.103, allocations: 4 kB / 432.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.103, allocations: 4 kB / 432.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.103, allocations: 0 / 432.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002333/0.1032, allocations: 122 kB / 432.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.749e-05/0.1033, allocations: 96.98 kB / 432.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.83e-05/0.1033, allocations: 11.92 kB / 432.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.891e-05/0.1034, allocations: 8 kB / 432.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.751e-05/0.1034, allocations: 4 kB / 432.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.1034, allocations: 4 kB / 432.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.584e-05/0.1035, allocations: 97.08 kB / 432.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1035, allocations: 0 / 432.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002141/0.1037, allocations: 16 kB / 432.7 MB, free: 14.71 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sine.counter,sine.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.counter,sine.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007504/0.1044, allocations: 0.7108 MB / 433.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001985/0.1046, allocations: 51.92 kB / 433.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1046, allocations: 0 / 433.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.935e-05/0.1047, allocations: 7.984 kB / 433.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007727/0.1055, allocations: 0.7225 MB / 434.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001809/0.1073, allocations: 1.404 MB / 435.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004156/0.1077, allocations: 0.6962 MB / 436.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.985e-05/0.1077, allocations: 7.984 kB / 436.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.127e-05/0.1078, allocations: 19.44 kB / 436.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1078, allocations: 0 / 436.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0241/0.1319, allocations: 1.994 MB / 438.3 MB, free: 9.023 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.9/8.032, allocations: 10.84 kB / 438.3 MB, free: 9.016 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199561 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.659394826740026] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 8.101168490946293 8.284524885 8.183995539 Calling exit ...