Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.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.001772/0.001772, allocations: 119.4 kB / 18.41 MB, free: 4.613 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.00218/0.00218, allocations: 192.3 kB / 21.35 MB, free: 1.684 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.51/1.51, allocations: 222.9 MB / 247 MB, free: 4.203 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.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5095,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5095,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 51.92 kB / 358.7 MB, free: 8.348 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1109, allocations: 49.43 MB / 408.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003803/0.1148, allocations: 1.978 MB / 410.1 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.1162, allocations: 0.6349 MB / 410.7 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/0.1164, allocations: 7.938 kB / 410.7 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.602e-05/0.1165, allocations: 15.8 kB / 410.7 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001445/0.1166, allocations: 27.73 kB / 410.7 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000547/0.1172, allocations: 107.8 kB / 410.9 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003201/0.1175, allocations: 208 kB / 411.1 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000241/0.1178, allocations: 104.3 kB / 411.2 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002219/0.118, allocations: 91.69 kB / 411.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.1182, allocations: 87.59 kB / 411.3 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.83e-05/0.1182, allocations: 20 kB / 411.4 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.728e-05/0.1183, allocations: 20 kB / 411.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.454e-05/0.1183, allocations: 39.84 kB / 411.4 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.1184, allocations: 87.53 kB / 411.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003174/0.1188, allocations: 223 kB / 411.7 MB, free: 3.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1188, allocations: 0 / 411.7 MB, free: 3.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1188, allocations: 0 / 411.7 MB, free: 3.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.1188, allocations: 0 / 411.7 MB, free: 3.223 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.001067/0.1199, allocations: 0.5296 MB / 412.2 MB, free: 2.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.1199, allocations: 12.03 kB / 412.3 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.944e-05/0.12, allocations: 16.84 kB / 412.3 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004328/0.1205, allocations: 237.9 kB / 412.5 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.626e-05/0.1205, allocations: 42.58 kB / 412.5 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.841e-05/0.1206, allocations: 23.94 kB / 412.6 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008007/0.1214, allocations: 325.3 kB / 412.9 MB, free: 1.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.1214, allocations: 0 / 412.9 MB, free: 1.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.784e-05/0.1215, allocations: 16 kB / 412.9 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.1215, allocations: 4 kB / 412.9 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004691/0.1219, allocations: 131.8 kB / 413 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007878/0.1227, allocations: 449.4 kB / 413.5 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000553/0.1233, allocations: 209.1 kB / 413.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000285/0.1236, allocations: 105.8 kB / 413.8 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.387e-05/0.1237, allocations: 8.062 kB / 413.8 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000316/0.124, allocations: 115.3 kB / 413.9 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.424e-06/0.124, allocations: 0 / 413.9 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009177/0.1249, allocations: 290 kB / 414.2 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.335e-05/0.125, allocations: 93.11 kB / 414.3 MB, free: 436 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.1252, allocations: 155.8 kB / 414.4 MB, free: 268 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.1252, allocations: 25.7 kB / 414.5 MB, free: 236 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.036e-05/0.1253, allocations: 116.5 kB / 414.6 MB, free: 116 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.55e-05/0.1254, allocations: 39.73 kB / 414.6 MB, free: 76 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.997e-05/0.1255, allocations: 45.7 kB / 414.7 MB, free: 24 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.1257, allocations: 330.8 kB / 415 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002357/0.1259, allocations: 68.12 kB / 415 MB, free: 15.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002745/0.1262, allocations: 139.4 kB / 415.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004955/0.1267, allocations: 229.8 kB / 415.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1267, allocations: 3.938 kB / 415.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006334/0.1273, allocations: 274.9 kB / 415.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.758e-05/0.1274, allocations: 37.69 kB / 415.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.1274, allocations: 0 / 415.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.1274, allocations: 7.984 kB / 415.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.1277, allocations: 47.91 kB / 415.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.1277, allocations: 8.281 kB / 415.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001968/0.1279, allocations: 39.77 kB / 415.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.662e-05/0.1279, allocations: 15.98 kB / 415.8 MB, free: 14.74 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 13 (rotationalClock.changed.y,$CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition2,rotationalClock.less.y,trigger_interval_input.count,$PRE.trigger_interval_input.count,trigger_interval_input.T_start,$PRE.trigger_interval_input.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * 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.0001544/0.1281, allocations: 138.4 kB / 416 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002208/0.1283, allocations: 97.58 kB / 416.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.726e-05/0.1284, allocations: 20.72 kB / 416.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1284, allocations: 4 kB / 416.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.1284, allocations: 7.938 kB / 416.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.1284, allocations: 7.984 kB / 416.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008408/0.1293, allocations: 498.2 kB / 416.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.1293, allocations: 0 / 416.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002101/0.1295, allocations: 43.89 kB / 416.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.1295, allocations: 3.938 kB / 416.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2e-05/0.1296, allocations: 8 kB / 416.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.1296, allocations: 7.938 kB / 416.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.1296, allocations: 0 / 416.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006431/0.1302, allocations: 322.3 kB / 417 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.142e-05/0.1303, allocations: 89.02 kB / 417 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.949e-05/0.1303, allocations: 11.94 kB / 417.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.1306, allocations: 23.97 kB / 417.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.552e-05/0.1306, allocations: 15.98 kB / 417.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/0.1307, allocations: 4 kB / 417.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.806e-05/0.1308, allocations: 113.5 kB / 417.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1308, allocations: 0 / 417.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000323/0.1311, allocations: 39.94 kB / 417.3 MB, free: 13.21 MB / 350.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: 10 (rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.cast.y,rotationalClock.changed.u,rotationalClock.changed.y,rotationalClock.less.y,$whenCondition1,trigger_interval_input.T_start,trigger_interval_input.count,$whenCondition2) * Number of discrete states: 1 (trigger_interval_input.count) * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * 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.0001411/0.1313, allocations: 115.7 kB / 417.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006463/0.1319, allocations: 243.1 kB / 417.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1319, allocations: 0 / 417.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002309/0.1322, allocations: 59.91 kB / 417.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004612/0.1326, allocations: 72.55 kB / 417.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007711/0.1334, allocations: 354.5 kB / 418.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.1338, allocations: 0.7282 MB / 418.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.26e-05/0.1339, allocations: 23.44 kB / 418.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1339, allocations: 4 kB / 418.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of Templates: time 0.004894/0.1388, allocations: 2.189 MB / 421 MB, free: 9.363 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample_angle.y,rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed Variables in the result:rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed,sample_angle.y,time [Calling sys.exit(0), Time elapsed: 7.466257871012203]