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.001276/0.001276, allocations: 109 kB / 21.23 MB, free: 0.5117 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.001841/0.001841, allocations: 209.9 kB / 24.54 MB, free: 3.906 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.395/1.395, allocations: 230.6 MB / 258.3 MB, free: 8.23 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.00193/0.00193, allocations: 64.77 kB / 378.6 MB, free: 3.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2531, allocations: 53.37 MB / 431.9 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002797/0.2559, allocations: 1.615 MB / 433.5 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009445/0.2568, allocations: 0.522 MB / 434.1 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.147e-05/0.2569, allocations: 0 / 434.1 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.382e-05/0.2569, allocations: 7.875 kB / 434.1 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001848/0.2571, allocations: 15.86 kB / 434.1 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002552/0.2574, allocations: 47.89 kB / 434.1 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001441/0.2575, allocations: 75.75 kB / 434.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.2576, allocations: 8 kB / 434.2 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.2578, allocations: 35.92 kB / 434.3 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.843e-05/0.2579, allocations: 39.77 kB / 434.3 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.006e-05/0.2579, allocations: 8 kB / 434.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.192e-05/0.2579, allocations: 7.938 kB / 434.3 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.603e-05/0.258, allocations: 19.92 kB / 434.3 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.438e-05/0.258, allocations: 35.78 kB / 434.4 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00015/0.2582, allocations: 63.44 kB / 434.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.2582, allocations: 0 / 434.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2582, allocations: 0 / 434.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.2582, allocations: 0 / 434.4 MB, free: 4.434 MB / 334.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.0005659/0.2587, allocations: 307.2 kB / 434.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.2588, allocations: 12.03 kB / 434.7 MB, free: 4.094 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.245e-05/0.2588, allocations: 34.75 kB / 434.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002271/0.2591, allocations: 20.88 kB / 434.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002429/0.2593, allocations: 137.4 kB / 434.9 MB, free: 3.875 MB / 334.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.0001266/0.2594, allocations: 38.19 kB / 435 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.178e-05/0.2594, allocations: 8.375 kB / 435 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003861/0.2598, allocations: 160.9 kB / 435.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.2598, allocations: 0 / 435.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.2599, allocations: 0 / 435.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.2599, allocations: 3.984 kB / 435.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001212/0.26, allocations: 35.92 kB / 435.2 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000195/0.2602, allocations: 165.5 kB / 435.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002703/0.2604, allocations: 85.31 kB / 435.4 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.719e-05/0.2605, allocations: 41.64 kB / 435.4 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.2606, allocations: 11.92 kB / 435.5 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.185e-05/0.2606, allocations: 38.55 kB / 435.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.2606, allocations: 0 / 435.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003433/0.2609, allocations: 109.5 kB / 435.6 MB, free: 3.082 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.69e-05/0.261, allocations: 85.11 kB / 435.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.2611, allocations: 125.8 kB / 435.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.2612, allocations: 29.83 kB / 435.8 MB, free: 2.812 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.091e-05/0.2612, allocations: 88.14 kB / 435.9 MB, free: 2.723 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.303e-05/0.2612, allocations: 15.88 kB / 435.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.032e-05/0.2613, allocations: 25.7 kB / 436 MB, free: 2.676 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.2614, allocations: 314.8 kB / 436.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.304e-05/0.2615, allocations: 15.98 kB / 436.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.085e-05/0.2615, allocations: 65.94 kB / 436.4 MB, free: 2.258 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001229/0.2617, allocations: 77.94 kB / 436.4 MB, free: 2.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2617, allocations: 0 / 436.4 MB, free: 2.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001801/0.2618, allocations: 109.4 kB / 436.5 MB, free: 2.047 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.2619, allocations: 6.812 kB / 436.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.2619, allocations: 4 kB / 436.5 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.2619, allocations: 4.219 kB / 436.6 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.925e-05/0.262, allocations: 15.98 kB / 436.6 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.262, allocations: 4 kB / 436.6 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.192e-05/0.262, allocations: 11.94 kB / 436.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.262, allocations: 0 / 436.6 MB, free: 2.004 MB / 334.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 9.512e-05/0.2621, allocations: 121.8 kB / 436.7 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001294/0.2623, allocations: 73.58 kB / 436.8 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.368e-05/0.2623, allocations: 16.36 kB / 436.8 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.2623, allocations: 0 / 436.8 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.696e-06/0.2623, allocations: 7.938 kB / 436.8 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.2623, allocations: 0 / 436.8 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001277/0.2624, allocations: 144.7 kB / 436.9 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.155e-06/0.2624, allocations: 4.25 kB / 436.9 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.34e-05/0.2625, allocations: 11.98 kB / 437 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.2625, allocations: 0 / 437 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.2625, allocations: 12 kB / 437 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.2625, allocations: 7.922 kB / 437 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2625, allocations: 0 / 437 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002135/0.2627, allocations: 117.9 kB / 437.1 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.943e-05/0.2628, allocations: 19.88 kB / 437.1 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.2628, allocations: 4 kB / 437.1 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.546e-05/0.2629, allocations: 7.984 kB / 437.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.217e-05/0.2629, allocations: 4.188 kB / 437.1 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-06/0.2629, allocations: 0 / 437.1 MB, free: 1.379 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.506e-05/0.263, allocations: 102.2 kB / 437.2 MB, free: 1.281 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.263, allocations: 4 kB / 437.2 MB, free: 1.277 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002005/0.2632, allocations: 16 kB / 437.2 MB, free: 1.262 MB / 334.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.0006179/0.2638, allocations: 0.6912 MB / 437.9 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000189/0.264, allocations: 59.97 kB / 438 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.264, allocations: 0 / 438 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.873e-05/0.264, allocations: 11.92 kB / 438 MB, free: 480 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007053/0.2647, allocations: 0.7185 MB / 438.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.2662, allocations: 1.413 MB / 440.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.2665, allocations: 0.6885 MB / 440.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.952e-05/0.2665, allocations: 8 kB / 440.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.226e-05/0.2666, allocations: 23.42 kB / 440.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2666, allocations: 3.938 kB / 440.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02407/0.2906, allocations: 2.016 MB / 442.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.706/7.996, allocations: 3.438 kB / 442.9 MB, free: 11.51 MB / 350.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.39439775981009] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 8.067181848920882 8.084408209 7.823068824 Calling exit ...