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.0007753/0.0007753, allocations: 84 kB / 21.43 MB, free: 3.129 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.003035/0.003035, allocations: 144.4 kB / 24.68 MB, free: 9.426 MB / 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 0.8205/0.8205, allocations: 173.3 MB / 201.2 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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.623e-06/1.623e-06, allocations: 0 / 319.7 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.763e-05/2.926e-05, allocations: 6.219 kB / 319.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002124/0.002153, allocations: 1.918 MB / 321.6 MB, free: 3.934 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006929/0.002846, allocations: 0.6191 MB / 322.2 MB, free: 3.309 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.116e-05/0.002928, allocations: 7.938 kB / 322.2 MB, free: 3.301 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.896e-05/0.002966, allocations: 19.73 kB / 322.2 MB, free: 3.281 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.98e-05/0.003046, allocations: 19.8 kB / 322.3 MB, free: 3.262 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002952/0.003342, allocations: 123.6 kB / 322.4 MB, free: 3.141 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000181/0.003523, allocations: 204.1 kB / 322.6 MB, free: 2.941 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.003658, allocations: 72.88 kB / 322.7 MB, free: 2.867 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.003798, allocations: 127.6 kB / 322.8 MB, free: 2.742 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.102e-05/0.003879, allocations: 63.84 kB / 322.8 MB, free: 2.68 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.581e-05/0.003905, allocations: 20 kB / 322.9 MB, free: 2.66 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.841e-05/0.003924, allocations: 20 kB / 322.9 MB, free: 2.641 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.431e-05/0.003958, allocations: 43.83 kB / 322.9 MB, free: 2.598 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.089e-05/0.004009, allocations: 59.83 kB / 323 MB, free: 2.539 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001897/0.004198, allocations: 231.2 kB / 323.2 MB, free: 2.312 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.874e-06/0.0042, allocations: 0 / 323.2 MB, free: 2.312 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.004201, allocations: 0 / 323.2 MB, free: 2.312 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.159e-06/0.004206, allocations: 4 kB / 323.2 MB, free: 2.309 MB / 282.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.0005477/0.004754, allocations: 465.2 kB / 323.7 MB, free: 1.809 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.153e-05/0.004785, allocations: 12.92 kB / 323.7 MB, free: 1.797 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.472e-05/0.00483, allocations: 20.8 kB / 323.7 MB, free: 1.777 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001941/0.005024, allocations: 181 kB / 323.9 MB, free: 1.578 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.536e-05/0.00508, allocations: 68.28 kB / 323.9 MB, free: 1.5 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.005098, allocations: 16.38 kB / 324 MB, free: 1.484 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004295/0.005528, allocations: 352.9 kB / 324.3 MB, free: 1.117 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.005535, allocations: 0 / 324.3 MB, free: 1.117 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.005555, allocations: 23.97 kB / 324.3 MB, free: 1.094 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.00556, allocations: 4 kB / 324.3 MB, free: 1.09 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000218/0.005778, allocations: 123.9 kB / 324.4 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003932/0.006172, allocations: 349 kB / 324.8 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002693/0.006441, allocations: 193.3 kB / 325 MB, free: 396 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.006569, allocations: 101.6 kB / 325.1 MB, free: 288 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.006587, allocations: 8 kB / 325.1 MB, free: 280 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001663/0.006754, allocations: 145.1 kB / 325.2 MB, free: 116 kB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.583e-06/0.006755, allocations: 0 / 325.2 MB, free: 116 kB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.00045/0.007205, allocations: 286.1 kB / 325.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.007255, allocations: 97.14 kB / 325.6 MB, free: 15.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.718e-05/0.007332, allocations: 146.4 kB / 325.7 MB, free: 15.56 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.007348, allocations: 25.7 kB / 325.8 MB, free: 15.53 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.306e-05/0.007401, allocations: 120.5 kB / 325.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/0.007425, allocations: 39.72 kB / 325.9 MB, free: 15.37 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.303e-05/0.007468, allocations: 33.7 kB / 326 MB, free: 15.33 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.71e-05/0.007545, allocations: 326.8 kB / 326.3 MB, free: 15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.007647, allocations: 81.66 kB / 326.4 MB, free: 14.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.00775, allocations: 103.4 kB / 326.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001737/0.007923, allocations: 139.3 kB / 326.6 MB, free: 14.65 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.007925, allocations: 0 / 326.6 MB, free: 14.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002572/0.008182, allocations: 228.9 kB / 326.8 MB, free: 14.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.008208, allocations: 41.75 kB / 326.9 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.008211, allocations: 0 / 326.9 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.288e-06/0.00822, allocations: 0 / 326.9 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.138e-05/0.008302, allocations: 23.98 kB / 326.9 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.008307, allocations: 0 / 326.9 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.631e-05/0.008373, allocations: 27.92 kB / 326.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.008384, allocations: 4 kB / 326.9 MB, free: 14.31 MB / 298.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 7.64e-05/0.00846, allocations: 133.7 kB / 327 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/0.00862, allocations: 109.5 kB / 327.1 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.488e-05/0.008655, allocations: 28.77 kB / 327.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.008656, allocations: 0 / 327.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.008662, allocations: 8 kB / 327.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.008665, allocations: 0 / 327.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003614/0.009026, allocations: 405.9 kB / 327.6 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.009027, allocations: 0 / 327.6 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.367e-05/0.009121, allocations: 43.95 kB / 327.6 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.009123, allocations: 4 kB / 327.6 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/0.009133, allocations: 4 kB / 327.6 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.009135, allocations: 3.938 kB / 327.6 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.009137, allocations: 4 kB / 327.6 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002915/0.009429, allocations: 329.8 kB / 328 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.385e-05/0.009443, allocations: 19.83 kB / 328 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.91e-05/0.009462, allocations: 8 kB / 328 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.326e-05/0.009545, allocations: 19.97 kB / 328 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.009649, allocations: 19.98 kB / 328 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.009659, allocations: 7.984 kB / 328 MB, free: 13.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.495e-05/0.009704, allocations: 114.4 kB / 328.1 MB, free: 13 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009704, allocations: 0 / 328.1 MB, free: 13 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001594/0.009864, allocations: 35.98 kB / 328.2 MB, free: 12.96 MB / 298.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 7.489e-05/0.009939, allocations: 103.2 kB / 328.3 MB, free: 12.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002909/0.01023, allocations: 232.9 kB / 328.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.01023, allocations: 8 kB / 328.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.8e-05/0.01032, allocations: 51.97 kB / 328.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002599/0.01058, allocations: 71.86 kB / 328.6 MB, free: 12.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004043/0.01098, allocations: 347.9 kB / 329 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.988e-05/0.01105, allocations: 120.3 kB / 329.1 MB, free: 11.97 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.849e-05/0.0111, allocations: 24.48 kB / 329.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.0111, allocations: 0 / 329.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of Templates: time 0.002353/0.01346, allocations: 2.122 MB / 331.2 MB, free: 9.836 MB / 298.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=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] "" 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: 3.957784310914576]