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.001805/0.001805, allocations: 91.92 kB / 20.97 MB, free: 3.441 MB / 18.57 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.002043/0.002043, allocations: 145.1 kB / 24.26 MB, free: 152 kB / 18.57 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.539/1.539, allocations: 173.4 MB / 200.8 MB, free: 9.328 MB / 186.7 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 1.613e-06/1.613e-06, allocations: 0 / 267.3 MB, free: 6.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.013e-05/3.174e-05, allocations: 2.312 kB / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003808/0.00384, allocations: 1.964 MB / 269.3 MB, free: 4.777 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001373/0.005213, allocations: 0.6307 MB / 269.9 MB, free: 4.141 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.005338, allocations: 4 kB / 269.9 MB, free: 4.137 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.724e-05/0.005395, allocations: 19.73 kB / 269.9 MB, free: 4.117 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001306/0.005526, allocations: 19.8 kB / 269.9 MB, free: 4.098 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004591/0.005985, allocations: 115.6 kB / 270.1 MB, free: 3.984 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003156/0.0063, allocations: 204.1 kB / 270.3 MB, free: 3.785 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/0.006485, allocations: 68.81 kB / 270.3 MB, free: 3.719 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002611/0.006746, allocations: 131.6 kB / 270.5 MB, free: 3.59 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.006896, allocations: 63.84 kB / 270.5 MB, free: 3.527 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.125e-05/0.006947, allocations: 20 kB / 270.5 MB, free: 3.508 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.868e-05/0.006986, allocations: 20 kB / 270.6 MB, free: 3.488 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.114e-05/0.007047, allocations: 43.81 kB / 270.6 MB, free: 3.445 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.385e-05/0.007141, allocations: 67.83 kB / 270.7 MB, free: 3.379 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003381/0.007479, allocations: 223.3 kB / 270.9 MB, free: 3.16 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.007482, allocations: 0 / 270.9 MB, free: 3.16 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.007483, allocations: 0 / 270.9 MB, free: 3.16 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.007492, allocations: 3.984 kB / 270.9 MB, free: 3.156 MB / 250.7 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.0009737/0.008465, allocations: 0.5539 MB / 271.4 MB, free: 2.551 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.008507, allocations: 12.92 kB / 271.4 MB, free: 2.539 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.008612, allocations: 36.73 kB / 271.5 MB, free: 2.504 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003425/0.008954, allocations: 188.1 kB / 271.7 MB, free: 2.297 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.562e-05/0.00905, allocations: 68.3 kB / 271.7 MB, free: 2.219 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.542e-05/0.009085, allocations: 16.38 kB / 271.8 MB, free: 2.203 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008242/0.00991, allocations: 371 kB / 272.1 MB, free: 1.816 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.009922, allocations: 0 / 272.1 MB, free: 1.816 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.49e-05/0.009947, allocations: 4 kB / 272.1 MB, free: 1.812 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.009955, allocations: 11.94 kB / 272.1 MB, free: 1.801 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003759/0.01033, allocations: 111.9 kB / 272.2 MB, free: 1.691 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007896/0.01112, allocations: 435 kB / 272.7 MB, free: 1.227 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005015/0.01162, allocations: 214.2 kB / 272.9 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002666/0.01189, allocations: 95.34 kB / 273 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.301e-05/0.01192, allocations: 4 kB / 273 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003051/0.01223, allocations: 150.8 kB / 273.1 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.723e-06/0.01223, allocations: 0 / 273.1 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008057/0.01303, allocations: 274.1 kB / 273.4 MB, free: 456 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.039e-05/0.01312, allocations: 85.11 kB / 273.5 MB, free: 352 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002154/0.01334, allocations: 221.9 kB / 273.7 MB, free: 112 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.915e-05/0.01338, allocations: 33.7 kB / 273.7 MB, free: 72 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.01353, allocations: 163.2 kB / 273.9 MB, free: 15.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.874e-05/0.01358, allocations: 39.69 kB / 273.9 MB, free: 15.87 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.01369, allocations: 47.36 kB / 274 MB, free: 15.81 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002913/0.01398, allocations: 0.5079 MB / 274.5 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.01417, allocations: 73.61 kB / 274.5 MB, free: 15.21 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/0.01437, allocations: 104.3 kB / 274.6 MB, free: 15.1 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000325/0.01469, allocations: 137 kB / 274.8 MB, free: 14.95 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.0147, allocations: 0 / 274.8 MB, free: 14.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004817/0.01518, allocations: 219.8 kB / 275 MB, free: 14.72 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.731e-05/0.01522, allocations: 41.75 kB / 275 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.01523, allocations: 0 / 275 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.01524, allocations: 0 / 275 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.0154, allocations: 27.98 kB / 275.1 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.01541, allocations: 0 / 275.1 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.01554, allocations: 15.94 kB / 275.1 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.01556, allocations: 4 kB / 275.1 MB, free: 14.63 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,$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 (15): * Single equations (assignments): 14 * 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.0001846/0.01574, allocations: 188.4 kB / 275.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00023/0.01597, allocations: 121.6 kB / 275.4 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.544e-05/0.01604, allocations: 16.78 kB / 275.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.01604, allocations: 4 kB / 275.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.01604, allocations: 3.984 kB / 275.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.01605, allocations: 4 kB / 275.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007623/0.01681, allocations: 465.2 kB / 275.9 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.01682, allocations: 0 / 275.9 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001795/0.017, allocations: 39.97 kB / 275.9 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.521e-06/0.017, allocations: 4 kB / 275.9 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.935e-05/0.01702, allocations: 4 kB / 275.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.693e-06/0.01703, allocations: 11.88 kB / 275.9 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.01703, allocations: 7.984 kB / 275.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006366/0.01767, allocations: 367.3 kB / 276.3 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.59e-05/0.0177, allocations: 23.84 kB / 276.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.365e-05/0.01774, allocations: 3.984 kB / 276.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.01789, allocations: 12 kB / 276.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.428e-05/0.01796, allocations: 15.97 kB / 276.3 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.01799, allocations: 15.98 kB / 276.4 MB, free: 13.26 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001276/0.01812, allocations: 158.5 kB / 276.5 MB, free: 13.11 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01812, allocations: 0 / 276.5 MB, free: 13.11 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002755/0.01839, allocations: 36 kB / 276.5 MB, free: 13.07 MB / 266.7 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.0001575/0.01855, allocations: 115.2 kB / 276.7 MB, free: 12.95 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005308/0.01908, allocations: 228.7 kB / 276.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.01908, allocations: 0 / 276.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001931/0.01928, allocations: 71.53 kB / 277 MB, free: 12.63 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004614/0.01974, allocations: 63.66 kB / 277 MB, free: 12.57 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007462/0.02048, allocations: 338.5 kB / 277.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001396/0.02062, allocations: 120.1 kB / 277.5 MB, free: 12.07 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.725e-05/0.02069, allocations: 9.156 kB / 277.5 MB, free: 12.06 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.206e-05/0.02076, allocations: 20.48 kB / 277.5 MB, free: 12.04 MB / 266.7 MB Notification: Performance of SimCode: time 6.51e-07/0.02076, allocations: 0 / 277.5 MB, free: 12.04 MB / 266.7 MB Notification: Performance of Templates: time 0.00605/0.02681, allocations: 1.917 MB / 279.4 MB, free: 10.15 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 240] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.582147135981359]