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.001835/0.001835, allocations: 80.67 kB / 20.68 MB, free: 1.035 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.00196/0.00196, allocations: 154.9 kB / 23.94 MB, free: 4.176 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.488/1.488, allocations: 173.3 MB / 200.4 MB, free: 12.85 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 2.134e-06/2.134e-06, allocations: 0 / 318.9 MB, free: 3.57 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.795e-05/4.008e-05, allocations: 3.844 kB / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003681/0.003721, allocations: 1.926 MB / 320.8 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.004967, allocations: 0.6145 MB / 321.5 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.005101, allocations: 6.594 kB / 321.5 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.219e-05/0.005163, allocations: 15.94 kB / 321.5 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001339/0.005297, allocations: 28.44 kB / 321.5 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004489/0.005746, allocations: 114.8 kB / 321.6 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002867/0.006032, allocations: 205 kB / 321.8 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000204/0.006236, allocations: 70.92 kB / 321.9 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002751/0.006511, allocations: 123.9 kB / 322 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001588/0.00667, allocations: 67.3 kB / 322.1 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.692e-05/0.006727, allocations: 19.19 kB / 322.1 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.914e-05/0.006766, allocations: 19.41 kB / 322.1 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.964e-05/0.006836, allocations: 49.58 kB / 322.2 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.006956, allocations: 56.55 kB / 322.2 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004512/0.007407, allocations: 227 kB / 322.4 MB, free: 1.348 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.007415, allocations: 1.156 kB / 322.4 MB, free: 1.348 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.867e-06/0.007419, allocations: 0.5625 kB / 322.4 MB, free: 1.348 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.007427, allocations: 0 / 322.4 MB, free: 1.348 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.001088/0.008515, allocations: 472.7 kB / 322.9 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.903e-05/0.008574, allocations: 10.03 kB / 322.9 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.008674, allocations: 19.06 kB / 322.9 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003474/0.009022, allocations: 180.5 kB / 323.1 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.588e-05/0.009117, allocations: 70.97 kB / 323.2 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.824e-05/0.009156, allocations: 14.81 kB / 323.2 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007964/0.009952, allocations: 360.4 kB / 323.5 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.009966, allocations: 0.75 kB / 323.5 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.783e-05/0.009994, allocations: 14.53 kB / 323.6 MB, free: 492 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.01, allocations: 3.656 kB / 323.6 MB, free: 492 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000477/0.01048, allocations: 130.5 kB / 323.7 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006511/0.01113, allocations: 353.9 kB / 324 MB, free: 168 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005398/0.01167, allocations: 193 kB / 324.2 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000254/0.01192, allocations: 92.97 kB / 324.3 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.147e-05/0.01196, allocations: 7.594 kB / 324.3 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003937/0.01235, allocations: 154 kB / 324.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 4.639e-06/0.01235, allocations: 3.984 kB / 324.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009782/0.01333, allocations: 282.2 kB / 324.7 MB, free: 15.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.01345, allocations: 95.72 kB / 324.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001764/0.01362, allocations: 149 kB / 325 MB, free: 15.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.819e-05/0.01366, allocations: 28.45 kB / 325 MB, free: 15.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.01381, allocations: 115.3 kB / 325.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.657e-05/0.01387, allocations: 44.03 kB / 325.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.247e-05/0.01396, allocations: 41.55 kB / 325.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000219/0.01418, allocations: 324.7 kB / 325.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002349/0.01441, allocations: 78.69 kB / 325.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002489/0.01466, allocations: 98.5 kB / 325.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003808/0.01504, allocations: 146.5 kB / 325.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.01504, allocations: 0 / 325.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005327/0.01558, allocations: 228.2 kB / 326.1 MB, free: 14.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.038e-05/0.01563, allocations: 36.75 kB / 326.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.01563, allocations: 1.812 kB / 326.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.01565, allocations: 1.156 kB / 326.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.01583, allocations: 27.34 kB / 326.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.01584, allocations: 5.984 kB / 326.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000157/0.01599, allocations: 26.62 kB / 326.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/0.01602, allocations: 5.281 kB / 326.2 MB, free: 14.68 MB / 302.1 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.0001659/0.01618, allocations: 132.9 kB / 326.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002244/0.01641, allocations: 107.3 kB / 326.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.52e-05/0.01648, allocations: 22.22 kB / 326.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.01649, allocations: 2.219 kB / 326.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.01649, allocations: 1.094 kB / 326.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.0165, allocations: 2.531 kB / 326.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007926/0.01729, allocations: 408.9 kB / 326.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.0173, allocations: 0 / 326.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002144/0.01751, allocations: 44.34 kB / 326.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.01751, allocations: 2.078 kB / 326.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.01753, allocations: 4.578 kB / 326.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.193e-06/0.01754, allocations: 5.656 kB / 326.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.01754, allocations: 0 / 326.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008265/0.01837, allocations: 334 kB / 327.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.99e-05/0.0184, allocations: 18.19 kB / 327.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.682e-05/0.01844, allocations: 7.047 kB / 327.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001904/0.01863, allocations: 20.05 kB / 327.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.847e-05/0.01872, allocations: 16.66 kB / 327.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.08e-05/0.01874, allocations: 6.656 kB / 327.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001054/0.01884, allocations: 114.9 kB / 327.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01884, allocations: 1.062 kB / 327.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002783/0.01912, allocations: 29.12 kB / 327.4 MB, free: 13.84 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.0001554/0.01928, allocations: 111.4 kB / 327.5 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006048/0.01988, allocations: 230.5 kB / 327.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.217e-06/0.01988, allocations: 1.094 kB / 327.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002093/0.02009, allocations: 56.52 kB / 327.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00048/0.02057, allocations: 75.53 kB / 327.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007597/0.02133, allocations: 313.7 kB / 328.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001607/0.02149, allocations: 113.6 kB / 328.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.9e-05/0.02156, allocations: 18.27 kB / 328.3 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.998e-05/0.02165, allocations: 22.58 kB / 328.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.02165, allocations: 3.938 kB / 328.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of Templates: time 0.006366/0.02802, allocations: 1.894 MB / 330.2 MB, free: 12.88 MB / 302.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/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.3518532402813435]