Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.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.001563/0.001563, allocations: 112.9 kB / 19.17 MB, free: 3.891 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.001906/0.001906, allocations: 210.5 kB / 22.13 MB, free: 0.9375 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.561/1.561, allocations: 230.2 MB / 255.1 MB, free: 15.26 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: 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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 63.91 kB / 374.5 MB, free: 9.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1198, allocations: 53.32 MB / 427.8 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.00369/0.1235, allocations: 1.994 MB / 429.8 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.1249, allocations: 0.7088 MB / 430.5 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.1251, allocations: 7.938 kB / 430.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.224e-05/0.1251, allocations: 15.8 kB / 430.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001273/0.1252, allocations: 31.73 kB / 430.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004856/0.1257, allocations: 131.7 kB / 430.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002846/0.126, allocations: 200 kB / 430.9 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000197/0.1262, allocations: 68.33 kB / 431 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000241/0.1265, allocations: 91.69 kB / 431.1 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001467/0.1266, allocations: 87.61 kB / 431.1 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.18e-05/0.1266, allocations: 20 kB / 431.2 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.669e-05/0.1267, allocations: 24 kB / 431.2 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.194e-05/0.1268, allocations: 47.83 kB / 431.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.1269, allocations: 87.52 kB / 431.3 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003308/0.1272, allocations: 231 kB / 431.5 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1272, allocations: 0 / 431.5 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1272, allocations: 0 / 431.5 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.1272, allocations: 0 / 431.5 MB, free: 0.7695 MB / 350.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.001017/0.1282, allocations: 0.5284 MB / 432.1 MB, free: 184 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.1283, allocations: 15.97 kB / 432.1 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001975/0.1285, allocations: 36.78 kB / 432.1 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000367/0.1289, allocations: 239.5 kB / 432.4 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.528e-05/0.1289, allocations: 38.59 kB / 432.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.902e-05/0.129, allocations: 27.92 kB / 432.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007512/0.1297, allocations: 327.1 kB / 432.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.1297, allocations: 0 / 432.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.454e-05/0.1298, allocations: 4 kB / 432.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.066e-06/0.1298, allocations: 4 kB / 432.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004571/0.1302, allocations: 139.8 kB / 432.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007513/0.131, allocations: 461.3 kB / 433.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005505/0.1315, allocations: 197.1 kB / 433.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002705/0.1318, allocations: 93.67 kB / 433.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.1318, allocations: 7.938 kB / 433.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003278/0.1321, allocations: 123.4 kB / 433.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.923e-06/0.1322, allocations: 4 kB / 433.8 MB, free: 14.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008669/0.133, allocations: 285.3 kB / 434 MB, free: 14.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.487e-05/0.1331, allocations: 89.11 kB / 434.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.1333, allocations: 150.4 kB / 434.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.346e-05/0.1333, allocations: 33.7 kB / 434.3 MB, free: 13.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.242e-05/0.1334, allocations: 112.6 kB / 434.4 MB, free: 13.65 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.492e-05/0.1334, allocations: 35.73 kB / 434.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.678e-05/0.1335, allocations: 49.69 kB / 434.5 MB, free: 13.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.1337, allocations: 330.8 kB / 434.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.1339, allocations: 60.19 kB / 434.9 MB, free: 13.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002683/0.1341, allocations: 146.7 kB / 435 MB, free: 12.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004722/0.1346, allocations: 233.5 kB / 435.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.1346, allocations: 0 / 435.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006011/0.1352, allocations: 280.3 kB / 435.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.239e-05/0.1353, allocations: 39.89 kB / 435.6 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.1353, allocations: 4 kB / 435.6 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.196e-05/0.1353, allocations: 4 kB / 435.6 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.1355, allocations: 39.91 kB / 435.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.1355, allocations: 4 kB / 435.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001862/0.1357, allocations: 39.8 kB / 435.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.418e-05/0.1357, allocations: 11.94 kB / 435.7 MB, free: 12.29 MB / 366.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.0001627/0.1359, allocations: 141.8 kB / 435.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002034/0.1361, allocations: 109.5 kB / 435.9 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.461e-05/0.1362, allocations: 24.69 kB / 435.9 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.1362, allocations: 4 kB / 435.9 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.1362, allocations: 4 kB / 435.9 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.1362, allocations: 4 kB / 435.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000815/0.137, allocations: 0.4904 MB / 436.4 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.137, allocations: 0 / 436.4 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001975/0.1372, allocations: 43.91 kB / 436.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.1372, allocations: 4 kB / 436.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.927e-05/0.1372, allocations: 3.984 kB / 436.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.1372, allocations: 7.938 kB / 436.5 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1373, allocations: 0 / 436.5 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006457/0.1379, allocations: 325.9 kB / 436.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.576e-05/0.138, allocations: 101 kB / 436.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.119e-05/0.138, allocations: 0 / 436.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/0.1382, allocations: 23.92 kB / 436.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.985e-05/0.1383, allocations: 15.97 kB / 436.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.859e-05/0.1383, allocations: 8 kB / 437 MB, free: 10.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.441e-05/0.1384, allocations: 123.2 kB / 437.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1384, allocations: 0 / 437.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003103/0.1387, allocations: 32 kB / 437.1 MB, free: 10.73 MB / 366.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.0001529/0.1388, allocations: 111.2 kB / 437.2 MB, free: 10.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006536/0.1395, allocations: 243.3 kB / 437.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1395, allocations: 0 / 437.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001996/0.1397, allocations: 55.91 kB / 437.5 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004618/0.1402, allocations: 64.47 kB / 437.6 MB, free: 10.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007469/0.1409, allocations: 363.1 kB / 437.9 MB, free: 9.852 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00038/0.1413, allocations: 0.7322 MB / 438.7 MB, free: 9.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.458e-05/0.1414, allocations: 15.44 kB / 438.7 MB, free: 9.078 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1414, allocations: 0 / 438.7 MB, free: 9.078 MB / 366.1 MB Notification: Performance of Templates: time 0.004826/0.1462, allocations: 2.205 MB / 440.9 MB, free: 6.883 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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.302965619135648]