Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001727/0.001727, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 207.8 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.423/1.423, allocations: 230.6 MB / 257.5 MB, free: 7.801 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0_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_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 43.92 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2581, allocations: 53.38 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003014/0.2611, allocations: 1.608 MB / 432.7 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009633/0.2621, allocations: 482.8 kB / 433.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.621e-05/0.2621, allocations: 0 / 433.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.35e-05/0.2622, allocations: 7.875 kB / 433.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001536/0.2623, allocations: 19.86 kB / 433.2 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002565/0.2626, allocations: 55.88 kB / 433.2 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001249/0.2627, allocations: 71.72 kB / 433.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.427e-05/0.2628, allocations: 7.984 kB / 433.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001513/0.263, allocations: 39.84 kB / 433.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.287e-05/0.263, allocations: 31.84 kB / 433.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.98e-05/0.263, allocations: 8 kB / 433.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.027e-05/0.2631, allocations: 4 kB / 433.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.923e-05/0.2631, allocations: 23.91 kB / 433.4 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.273e-05/0.2632, allocations: 19.88 kB / 433.4 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.2633, allocations: 69.41 kB / 433.5 MB, free: 4.199 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2633, allocations: 4 kB / 433.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2633, allocations: 0 / 433.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.2633, allocations: 0 / 433.5 MB, free: 4.195 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.0005175/0.2638, allocations: 302 kB / 433.8 MB, free: 3.871 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.2639, allocations: 8.031 kB / 433.8 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.634e-05/0.2639, allocations: 42.67 kB / 433.9 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001996/0.2641, allocations: 20.88 kB / 433.9 MB, free: 3.793 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002613/0.2644, allocations: 138.3 kB / 434 MB, free: 3.633 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.0001092/0.2645, allocations: 38.25 kB / 434.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.241e-05/0.2645, allocations: 8.375 kB / 434.1 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003701/0.2649, allocations: 164.9 kB / 434.2 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.2649, allocations: 4 kB / 434.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.2649, allocations: 0 / 434.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.2649, allocations: 0 / 434.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001224/0.265, allocations: 39.91 kB / 434.3 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001913/0.2652, allocations: 141.6 kB / 434.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002597/0.2655, allocations: 97.23 kB / 434.5 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.604e-05/0.2656, allocations: 37.7 kB / 434.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.2656, allocations: 3.938 kB / 434.5 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.2656, allocations: 38.55 kB / 434.6 MB, free: 2.969 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.2656, allocations: 0 / 434.6 MB, free: 2.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003228/0.2659, allocations: 109.5 kB / 434.7 MB, free: 2.855 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.437e-05/0.266, allocations: 85.11 kB / 434.8 MB, free: 2.754 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.2661, allocations: 136.6 kB / 434.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.2661, allocations: 25.7 kB / 434.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.869e-05/0.2662, allocations: 92.14 kB / 435 MB, free: 2.488 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.939e-05/0.2662, allocations: 3.953 kB / 435 MB, free: 2.484 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.282e-05/0.2663, allocations: 25.7 kB / 435 MB, free: 2.453 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.2664, allocations: 314.8 kB / 435.4 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.507e-05/0.2664, allocations: 23.92 kB / 435.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.136e-05/0.2665, allocations: 58 kB / 435.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001299/0.2667, allocations: 77.94 kB / 435.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2667, allocations: 0 / 435.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001892/0.2668, allocations: 113.5 kB / 435.6 MB, free: 1.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.2669, allocations: 8 kB / 435.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/0.2669, allocations: 4 kB / 435.6 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.2669, allocations: 0 / 435.6 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.886e-05/0.267, allocations: 12.25 kB / 435.6 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.267, allocations: 11.92 kB / 435.7 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.506e-05/0.267, allocations: 15.94 kB / 435.7 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.267, allocations: 4 kB / 435.7 MB, free: 1.766 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.34e-05/0.2671, allocations: 113.8 kB / 435.8 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001289/0.2673, allocations: 73.58 kB / 435.9 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.2673, allocations: 20.36 kB / 435.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.2673, allocations: 0 / 435.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.2673, allocations: 0 / 435.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2673, allocations: 0 / 435.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001283/0.2674, allocations: 140.7 kB / 436 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.2674, allocations: 3.938 kB / 436 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.12e-05/0.2675, allocations: 15.92 kB / 436 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.2675, allocations: 0 / 436 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.2675, allocations: 4 kB / 436 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2675, allocations: 0 / 436 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2675, allocations: 0 / 436 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002197/0.2678, allocations: 125.9 kB / 436.2 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.037e-05/0.2678, allocations: 12.08 kB / 436.2 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.033e-05/0.2678, allocations: 11.98 kB / 436.2 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.365e-05/0.2679, allocations: 7.938 kB / 436.2 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.724e-05/0.2679, allocations: 0 / 436.2 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.2679, allocations: 7.938 kB / 436.2 MB, free: 1.156 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.776e-05/0.268, allocations: 103.2 kB / 436.3 MB, free: 1.055 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.268, allocations: 0 / 436.3 MB, free: 1.055 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002075/0.2682, allocations: 8 kB / 436.3 MB, free: 1.047 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.0006294/0.2688, allocations: 0.703 MB / 437 MB, free: 320 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001985/0.269, allocations: 51.86 kB / 437.1 MB, free: 268 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.269, allocations: 3.938 kB / 437.1 MB, free: 264 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.592e-05/0.2691, allocations: 7.984 kB / 437.1 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007704/0.2698, allocations: 0.7292 MB / 437.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/0.2715, allocations: 1.414 MB / 439.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.747e-05/0.2715, allocations: 75.33 kB / 439.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.622e-05/0.2716, allocations: 11.98 kB / 439.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.743e-05/0.2716, allocations: 19.44 kB / 439.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2716, allocations: 0 / 439.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0309/0.3025, allocations: 2.56 MB / 441.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.01, allocations: 0 / 441.9 MB, free: 11.42 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.577429252007278]