Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001772/0.001772, allocations: 111.1 kB / 20.44 MB, free: 1.352 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.002277/0.002277, allocations: 216.4 kB / 23.73 MB, free: 4.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 230.5 MB / 257.4 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002251/0.002251, allocations: 59.89 kB / 377.7 MB, free: 2.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2635, allocations: 53.42 MB / 431.2 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00294/0.2664, allocations: 1.592 MB / 432.7 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008943/0.2673, allocations: 486.8 kB / 433.2 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.416e-05/0.2674, allocations: 0 / 433.2 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.205e-05/0.2674, allocations: 7.875 kB / 433.2 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001538/0.2676, allocations: 19.84 kB / 433.2 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.2678, allocations: 47.08 kB / 433.3 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000119/0.2679, allocations: 75.7 kB / 433.4 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.711e-05/0.268, allocations: 8 kB / 433.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.2682, allocations: 43.89 kB / 433.4 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.158e-05/0.2682, allocations: 27.86 kB / 433.4 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.056e-05/0.2683, allocations: 4 kB / 433.4 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.261e-05/0.2683, allocations: 8 kB / 433.5 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.466e-05/0.2683, allocations: 19.91 kB / 433.5 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.541e-05/0.2684, allocations: 27.8 kB / 433.5 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.2685, allocations: 69.34 kB / 433.6 MB, free: 4.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2685, allocations: 0 / 433.6 MB, free: 4.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2685, allocations: 0 / 433.6 MB, free: 4.023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.2685, allocations: 0 / 433.6 MB, free: 4.023 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.0005434/0.2691, allocations: 314 kB / 433.9 MB, free: 3.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.2691, allocations: 11.98 kB / 433.9 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.193e-05/0.2692, allocations: 34.75 kB / 433.9 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002057/0.2694, allocations: 24.88 kB / 433.9 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002257/0.2696, allocations: 134.4 kB / 434.1 MB, free: 3.453 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.0001027/0.2697, allocations: 42.19 kB / 434.1 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.451e-05/0.2697, allocations: 4.375 kB / 434.1 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003686/0.2701, allocations: 168.9 kB / 434.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.2701, allocations: 0 / 434.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.2701, allocations: 4 kB / 434.3 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.2701, allocations: 0 / 434.3 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001258/0.2702, allocations: 31.92 kB / 434.3 MB, free: 3.184 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001658/0.2704, allocations: 149.6 kB / 434.5 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002457/0.2706, allocations: 85.31 kB / 434.6 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.525e-05/0.2707, allocations: 45.64 kB / 434.6 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.2708, allocations: 3.938 kB / 434.6 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.2708, allocations: 38.56 kB / 434.6 MB, free: 2.789 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.2708, allocations: 0 / 434.6 MB, free: 2.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003244/0.2711, allocations: 113.5 kB / 434.8 MB, free: 2.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.062e-05/0.2712, allocations: 85.11 kB / 434.8 MB, free: 2.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.2713, allocations: 125.1 kB / 435 MB, free: 2.441 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.2713, allocations: 25.7 kB / 435 MB, free: 2.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.625e-05/0.2713, allocations: 92.25 kB / 435.1 MB, free: 2.316 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.2714, allocations: 15.89 kB / 435.1 MB, free: 2.301 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.995e-05/0.2714, allocations: 21.72 kB / 435.1 MB, free: 2.273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.2715, allocations: 318.8 kB / 435.4 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.15e-05/0.2716, allocations: 19.98 kB / 435.4 MB, free: 1.934 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.876e-05/0.2717, allocations: 61.88 kB / 435.5 MB, free: 1.852 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001392/0.2718, allocations: 81.94 kB / 435.6 MB, free: 1.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2718, allocations: 0 / 435.6 MB, free: 1.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001867/0.272, allocations: 105.4 kB / 435.7 MB, free: 1.641 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.272, allocations: 4 kB / 435.7 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.272, allocations: 4 kB / 435.7 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.272, allocations: 4.219 kB / 435.7 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.819e-05/0.2721, allocations: 15.98 kB / 435.7 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.2721, allocations: 4 kB / 435.7 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.082e-05/0.2722, allocations: 7.938 kB / 435.7 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.066e-05/0.2722, allocations: 7.984 kB / 435.7 MB, free: 1.594 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 0.0001031/0.2723, allocations: 121.8 kB / 435.8 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001294/0.2724, allocations: 73.58 kB / 435.9 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.642e-05/0.2724, allocations: 16.36 kB / 435.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.2724, allocations: 3.984 kB / 435.9 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.2724, allocations: 0 / 435.9 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.2724, allocations: 8 kB / 435.9 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/0.2726, allocations: 132.8 kB / 436.1 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2726, allocations: 3.938 kB / 436.1 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.006e-05/0.2727, allocations: 12.3 kB / 436.1 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.2727, allocations: 0 / 436.1 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.2727, allocations: 4 kB / 436.1 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.2727, allocations: 7.984 kB / 436.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2727, allocations: 3.938 kB / 436.1 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002352/0.2729, allocations: 117.9 kB / 436.2 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.896e-05/0.273, allocations: 23.88 kB / 436.2 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.224e-05/0.273, allocations: 4 kB / 436.3 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.641e-05/0.273, allocations: 11.92 kB / 436.3 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.128e-05/0.2731, allocations: 0 / 436.3 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.2731, allocations: 4 kB / 436.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.231e-05/0.2732, allocations: 99.27 kB / 436.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2732, allocations: 0 / 436.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002029/0.2734, allocations: 8 kB / 436.4 MB, free: 0.8672 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.0006523/0.274, allocations: 0.707 MB / 437.1 MB, free: 132 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001771/0.2742, allocations: 59.91 kB / 437.1 MB, free: 72 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2742, allocations: 0 / 437.1 MB, free: 72 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.907e-05/0.2742, allocations: 11.92 kB / 437.1 MB, free: 60 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006873/0.2749, allocations: 0.718 MB / 437.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.2763, allocations: 1.412 MB / 439.3 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.433e-05/0.2764, allocations: 75.98 kB / 439.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.951e-05/0.2764, allocations: 4 kB / 439.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.031e-05/0.2765, allocations: 19.42 kB / 439.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2765, allocations: 8 kB / 439.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02814/0.3046, allocations: 2.535 MB / 441.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.36, allocations: 0 / 441.9 MB, free: 11.23 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,sine.y,sineRef.y,periodicClock1.period [Calling sys.exit(0), Time elapsed: 13.970422325190157]