Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001619/0.001619, allocations: 116.9 kB / 18.41 MB, free: 4.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001716/0.001716, allocations: 190.9 kB / 21.35 MB, free: 1.734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.506/1.506, allocations: 222.9 MB / 247 MB, free: 4.199 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 55.92 kB / 358.7 MB, free: 8.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.112, allocations: 49.42 MB / 408.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003408/0.1154, allocations: 1.582 MB / 409.7 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009671/0.1164, allocations: 450.8 kB / 410.1 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.1166, allocations: 4 kB / 410.1 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.984e-05/0.1166, allocations: 3.938 kB / 410.1 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002091/0.1168, allocations: 23.86 kB / 410.2 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002341/0.1171, allocations: 35.89 kB / 410.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001647/0.1173, allocations: 59.84 kB / 410.3 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.1174, allocations: 15.97 kB / 410.3 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001421/0.1175, allocations: 35.84 kB / 410.3 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.667e-05/0.1176, allocations: 35.86 kB / 410.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.768e-05/0.1177, allocations: 4 kB / 410.3 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.798e-05/0.1177, allocations: 7.938 kB / 410.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.596e-05/0.1177, allocations: 15.97 kB / 410.4 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.683e-05/0.1178, allocations: 27.8 kB / 410.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001999/0.118, allocations: 63.72 kB / 410.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.347e-06/0.118, allocations: 0 / 410.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.118, allocations: 0 / 410.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.1181, allocations: 0 / 410.5 MB, free: 4.449 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.0007694/0.1188, allocations: 379.2 kB / 410.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.1189, allocations: 12.03 kB / 410.8 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.322e-05/0.1189, allocations: 8.891 kB / 410.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003563/0.1193, allocations: 204.1 kB / 411 MB, free: 3.773 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.0001235/0.1194, allocations: 34.25 kB / 411.1 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.706e-05/0.1195, allocations: 16.3 kB / 411.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004432/0.1199, allocations: 169 kB / 411.3 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.12, allocations: 0 / 411.3 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.12, allocations: 0 / 411.3 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.12, allocations: 0 / 411.3 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001367/0.1201, allocations: 39.91 kB / 411.3 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002582/0.1204, allocations: 178.5 kB / 411.5 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003894/0.1208, allocations: 170.4 kB / 411.6 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001088/0.1209, allocations: 41.64 kB / 411.7 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.1209, allocations: 0 / 411.7 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.053e-05/0.121, allocations: 46.48 kB / 411.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.121, allocations: 4 kB / 411.7 MB, free: 2.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003806/0.1214, allocations: 109.5 kB / 411.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.064e-05/0.1215, allocations: 81.11 kB / 411.9 MB, free: 2.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.1216, allocations: 121.8 kB / 412 MB, free: 2.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.1216, allocations: 33.7 kB / 412.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.339e-05/0.1217, allocations: 92.12 kB / 412.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.449e-05/0.1217, allocations: 11.95 kB / 412.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.728e-05/0.1218, allocations: 29.83 kB / 412.2 MB, free: 2.441 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1219, allocations: 318.8 kB / 412.5 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.219e-05/0.122, allocations: 11.98 kB / 412.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.233e-05/0.1221, allocations: 62.19 kB / 412.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001396/0.1222, allocations: 73.94 kB / 412.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.1222, allocations: 4 kB / 412.7 MB, free: 1.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001907/0.1224, allocations: 109.4 kB / 412.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.1224, allocations: 11.98 kB / 412.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.1225, allocations: 0 / 412.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.1225, allocations: 4 kB / 412.8 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.785e-05/0.1226, allocations: 19.94 kB / 412.8 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.1226, allocations: 0 / 412.8 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.543e-05/0.1227, allocations: 12.2 kB / 412.8 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.1227, allocations: 4 kB / 412.8 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 0.0001628/0.1228, allocations: 121.9 kB / 412.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.123, allocations: 73.58 kB / 413 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.232e-05/0.123, allocations: 20.34 kB / 413 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.123, allocations: 0 / 413 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.123, allocations: 4 kB / 413 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.1231, allocations: 0 / 413 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001557/0.1232, allocations: 181.5 kB / 413.2 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1232, allocations: 4 kB / 413.2 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.692e-05/0.1233, allocations: 15.92 kB / 413.2 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.521e-06/0.1233, allocations: 4 kB / 413.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.1233, allocations: 0 / 413.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.1233, allocations: 0 / 413.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/0.1234, allocations: 3.938 kB / 413.2 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002317/0.1236, allocations: 114 kB / 413.3 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.302e-05/0.1237, allocations: 101 kB / 413.4 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/0.1237, allocations: 4 kB / 413.4 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.761e-05/0.1238, allocations: 8 kB / 413.5 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.294e-05/0.1238, allocations: 3.984 kB / 413.5 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.1238, allocations: 0 / 413.5 MB, free: 1.016 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.312e-05/0.1239, allocations: 95.27 kB / 413.6 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1239, allocations: 0 / 413.6 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002098/0.1241, allocations: 16 kB / 413.6 MB, free: 0.9062 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.0001347/0.1243, allocations: 107.8 kB / 413.7 MB, free: 0.793 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002061/0.1245, allocations: 59.84 kB / 413.7 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1245, allocations: 0 / 413.7 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.259e-05/0.1246, allocations: 11.98 kB / 413.7 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007606/0.1253, allocations: 0.7288 MB / 414.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000402/0.1257, allocations: 193.1 kB / 414.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003308/0.1261, allocations: 0.7 MB / 415.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.228e-05/0.1261, allocations: 11.44 kB / 415.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1261, allocations: 0 / 415.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of Templates: time 0.00271/0.1288, allocations: 0.9606 MB / 416.3 MB, free: 14.06 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.054865338024683]