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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007491/0.0007493, allocations: 95.23 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008396/0.0008397, allocations: 175.4 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 223.3 MB / 241.6 MB, free: 192 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003732/0.0003733, allocations: 11.94 kB / 301.4 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1143, allocations: 50.41 MB / 351.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002615/0.117, allocations: 1.656 MB / 353.5 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001527/0.1186, allocations: 0.6155 MB / 354.1 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002095/0.1188, allocations: 8 kB / 354.1 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.93e-05/0.1189, allocations: 11.86 kB / 354.1 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001829/0.1191, allocations: 15.86 kB / 354.1 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005759/0.1197, allocations: 99.8 kB / 354.2 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003339/0.12, allocations: 188 kB / 354.4 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002867/0.1203, allocations: 92.3 kB / 354.5 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002656/0.1206, allocations: 63.7 kB / 354.6 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001735/0.1208, allocations: 71.61 kB / 354.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.286e-05/0.1208, allocations: 7.938 kB / 354.7 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.614e-05/0.1209, allocations: 4 kB / 354.7 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.611e-05/0.1209, allocations: 31.84 kB / 354.7 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001463/0.1211, allocations: 89.3 kB / 354.8 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000324/0.1214, allocations: 191.5 kB / 355 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.1214, allocations: 3.938 kB / 355 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1214, allocations: 0 / 355 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.1215, allocations: 0 / 355 MB, free: 0.5312 MB / 286.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.001/0.1225, allocations: 0.4949 MB / 355.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1225, allocations: 8.031 kB / 355.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.542e-05/0.1226, allocations: 24.66 kB / 355.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002916/0.1229, allocations: 232.5 kB / 355.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.982e-05/0.123, allocations: 38.59 kB / 355.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.564e-05/0.1231, allocations: 27.94 kB / 355.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008308/0.1239, allocations: 335 kB / 356.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1239, allocations: 0 / 356.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.464e-05/0.124, allocations: 4 kB / 356.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.124, allocations: 4 kB / 356.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004507/0.1244, allocations: 147.8 kB / 356.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007786/0.1252, allocations: 469.2 kB / 356.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005673/0.1258, allocations: 217.1 kB / 356.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000287/0.1261, allocations: 113.6 kB / 357 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.637e-05/0.1261, allocations: 4 kB / 357 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003956/0.1265, allocations: 127.5 kB / 357.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.345e-06/0.1266, allocations: 0 / 357.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009379/0.1275, allocations: 305.3 kB / 357.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.21e-05/0.1276, allocations: 89.02 kB / 357.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.1277, allocations: 151.7 kB / 357.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.1278, allocations: 29.7 kB / 357.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.94e-05/0.1279, allocations: 124.5 kB / 357.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.985e-05/0.1279, allocations: 35.55 kB / 357.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.922e-05/0.128, allocations: 33.64 kB / 357.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.1281, allocations: 326.8 kB / 358.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002176/0.1283, allocations: 68.19 kB / 358.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002568/0.1286, allocations: 152.5 kB / 358.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004568/0.1291, allocations: 250.9 kB / 358.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1291, allocations: 7.938 kB / 358.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007168/0.1298, allocations: 299.1 kB / 359 MB, free: 12.13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.126e-05/0.1298, allocations: 33.7 kB / 359 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.1299, allocations: 4 kB / 359 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.1299, allocations: 4 kB / 359 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002109/0.1301, allocations: 47.91 kB / 359.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.445e-05/0.1301, allocations: 11.92 kB / 359.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001865/0.1303, allocations: 35.83 kB / 359.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.552e-05/0.1304, allocations: 11.98 kB / 359.2 MB, free: 11.98 MB / 302.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.0001818/0.1305, allocations: 141.8 kB / 359.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001881/0.1307, allocations: 109.4 kB / 359.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.548e-05/0.1308, allocations: 20.72 kB / 359.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.1308, allocations: 4 kB / 359.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.1309, allocations: 7.938 kB / 359.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.1309, allocations: 3.984 kB / 359.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007851/0.1317, allocations: 0.5022 MB / 359.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1317, allocations: 0 / 359.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001995/0.1319, allocations: 47.89 kB / 360 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-06/0.1319, allocations: 3.938 kB / 360 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.758e-05/0.1319, allocations: 7.938 kB / 360 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.656e-06/0.1319, allocations: 4 kB / 360 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1319, allocations: 0 / 360 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000607/0.1325, allocations: 336 kB / 360.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/0.1326, allocations: 88.92 kB / 360.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.925e-05/0.1327, allocations: 15.94 kB / 360.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.1329, allocations: 23.97 kB / 360.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.803e-05/0.133, allocations: 15.98 kB / 360.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.133, allocations: 7.984 kB / 360.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.327e-05/0.1331, allocations: 108.8 kB / 360.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1331, allocations: 0 / 360.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003182/0.1334, allocations: 43.84 kB / 360.6 MB, free: 10.39 MB / 302.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.000177/0.1336, allocations: 115.2 kB / 360.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006321/0.1343, allocations: 251.2 kB / 361 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.1343, allocations: 0 / 361 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002117/0.1345, allocations: 75.83 kB / 361.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004851/0.135, allocations: 73.94 kB / 361.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008086/0.1358, allocations: 387.3 kB / 361.5 MB, free: 9.461 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.1361, allocations: 0.7285 MB / 362.2 MB, free: 8.707 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.472e-05/0.1362, allocations: 17.42 kB / 362.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.962e-05/0.1363, allocations: 23.44 kB / 362.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of SimCode: time 7.32e-07/0.1363, allocations: 3.938 kB / 362.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of Templates: time 0.005347/0.1417, allocations: 1.711 MB / 364 MB, free: 6.965 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches