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.000753/0.000753, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001007/0.00176, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0009555/0.0009555, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001326/0.002281, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8328/0.8328, allocations: 173.4 MB / 186 MB, free: 7.52 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1282/0.961, allocations: 52.48 MB / 238.5 MB, free: 7.598 MB / 234.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.383e-06/1.383e-06, allocations: 0 / 239.7 MB, free: 6.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.013e-05/1.151e-05, allocations: 2.312 kB / 239.7 MB, free: 6.352 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002906/0.002918, allocations: 2.05 MB / 241.8 MB, free: 4.305 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009626/0.00388, allocations: 0.6402 MB / 242.4 MB, free: 3.66 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.323e-05/0.003973, allocations: 7.938 kB / 242.4 MB, free: 3.652 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 4.887e-05/0.004022, allocations: 15.8 kB / 242.4 MB, free: 3.637 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.569e-05/0.004108, allocations: 30.89 kB / 242.5 MB, free: 3.609 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003026/0.004411, allocations: 111.6 kB / 242.6 MB, free: 3.5 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002547/0.004665, allocations: 208 kB / 242.8 MB, free: 3.297 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.004825, allocations: 62.2 kB / 242.9 MB, free: 3.234 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002327/0.005057, allocations: 131.7 kB / 243 MB, free: 3.105 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001216/0.005179, allocations: 72.77 kB / 243.1 MB, free: 3.035 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.334e-05/0.005222, allocations: 20 kB / 243.1 MB, free: 3.016 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.982e-05/0.005252, allocations: 20.94 kB / 243.1 MB, free: 2.996 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.471e-05/0.005297, allocations: 31.88 kB / 243.1 MB, free: 2.965 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.22e-05/0.005359, allocations: 43.88 kB / 243.2 MB, free: 2.922 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002057/0.005565, allocations: 120.5 kB / 243.3 MB, free: 2.805 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.854e-05/0.005583, allocations: 4 kB / 243.3 MB, free: 2.801 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.005584, allocations: 5.281 kB / 243.3 MB, free: 2.797 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.005595, allocations: 0 / 243.3 MB, free: 2.797 MB / 234.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.0006901/0.006285, allocations: 463.5 kB / 243.7 MB, free: 2.305 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.006321, allocations: 13.45 kB / 243.8 MB, free: 2.293 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.952e-05/0.006391, allocations: 28.91 kB / 243.8 MB, free: 2.266 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002318/0.006623, allocations: 160.7 kB / 243.9 MB, free: 2.086 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.352e-05/0.006696, allocations: 68.3 kB / 244 MB, free: 2.008 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.248e-05/0.006729, allocations: 16.91 kB / 244 MB, free: 1.992 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004972/0.007226, allocations: 308.3 kB / 244.3 MB, free: 1.668 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.007236, allocations: 1.344 kB / 244.3 MB, free: 1.668 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.007257, allocations: 8 kB / 244.3 MB, free: 1.66 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.007265, allocations: 0 / 244.3 MB, free: 1.66 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001096/0.007375, allocations: 40.59 kB / 244.4 MB, free: 1.621 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004746/0.00785, allocations: 273.2 kB / 244.6 MB, free: 1.332 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.008047, allocations: 123.4 kB / 244.8 MB, free: 1.195 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.14e-05/0.008128, allocations: 53.7 kB / 244.8 MB, free: 1.137 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.459e-05/0.008153, allocations: 4.188 kB / 244.8 MB, free: 1.133 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001293/0.008282, allocations: 114.5 kB / 244.9 MB, free: 1.004 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.853e-06/0.008284, allocations: 0 / 244.9 MB, free: 1.004 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002842/0.008568, allocations: 134.1 kB / 245.1 MB, free: 0.8672 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.008627, allocations: 89.11 kB / 245.1 MB, free: 0.7617 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.008729, allocations: 149.7 kB / 245.3 MB, free: 0.6055 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.008756, allocations: 33.7 kB / 245.3 MB, free: 0.5664 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.658e-05/0.008812, allocations: 109.2 kB / 245.4 MB, free: 464 kB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.008843, allocations: 39.67 kB / 245.5 MB, free: 424 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.082e-05/0.008904, allocations: 38.31 kB / 245.5 MB, free: 380 kB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.654e-05/0.008991, allocations: 322.8 kB / 245.8 MB, free: 48 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.136e-05/0.009042, allocations: 38.55 kB / 245.9 MB, free: 4 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.534e-05/0.009117, allocations: 62.09 kB / 245.9 MB, free: 15.93 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001014/0.009219, allocations: 83.36 kB / 246 MB, free: 15.84 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.009222, allocations: 3.938 kB / 246 MB, free: 15.84 MB / 250.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001653/0.009387, allocations: 142.8 kB / 246.1 MB, free: 15.68 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.417e-05/0.009422, allocations: 33.7 kB / 246.2 MB, free: 15.64 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.009426, allocations: 0 / 246.2 MB, free: 15.64 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.009439, allocations: 3.938 kB / 246.2 MB, free: 15.64 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.009577, allocations: 36.78 kB / 246.2 MB, free: 15.61 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.009582, allocations: 3.984 kB / 246.2 MB, free: 15.6 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.146e-05/0.009663, allocations: 16.45 kB / 246.2 MB, free: 15.59 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.009678, allocations: 9.422 kB / 246.3 MB, free: 15.58 MB / 250.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 9.229e-05/0.009771, allocations: 117.8 kB / 246.4 MB, free: 15.45 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.009939, allocations: 77.59 kB / 246.4 MB, free: 15.37 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.59e-05/0.009985, allocations: 21.81 kB / 246.5 MB, free: 15.35 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.00999, allocations: 4 kB / 246.5 MB, free: 15.35 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.009992, allocations: 64 / 246.5 MB, free: 15.35 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.009997, allocations: 7.984 kB / 246.5 MB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003383/0.01034, allocations: 271.5 kB / 246.7 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.01034, allocations: 4 kB / 246.7 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.0105, allocations: 39.91 kB / 246.8 MB, free: 15.01 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.963e-05/0.01052, allocations: 15.84 kB / 246.8 MB, free: 14.99 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.01052, allocations: 7.984 kB / 246.8 MB, free: 14.98 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.01054, allocations: 4 kB / 246.8 MB, free: 14.98 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.01055, allocations: 4 kB / 246.8 MB, free: 14.98 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.01055, allocations: 0 / 246.8 MB, free: 14.98 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001564/0.0107, allocations: 184.3 kB / 247 MB, free: 14.78 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/0.01073, allocations: 8 kB / 247 MB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.01085, allocations: 11.98 kB / 247 MB, free: 14.76 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.826e-05/0.01091, allocations: 15.98 kB / 247 MB, free: 14.74 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/0.01093, allocations: 7.984 kB / 247 MB, free: 14.73 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.651e-05/0.01096, allocations: 31.27 kB / 247.1 MB, free: 14.7 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01096, allocations: 0 / 247.1 MB, free: 14.7 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002403/0.0112, allocations: 28 kB / 247.1 MB, free: 14.68 MB / 250.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 9.285e-05/0.0113, allocations: 96.28 kB / 247.2 MB, free: 14.57 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001608/0.01146, allocations: 165.7 kB / 247.4 MB, free: 14.39 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.01146, allocations: 3.938 kB / 247.4 MB, free: 14.39 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.533e-05/0.01151, allocations: 36.84 kB / 247.4 MB, free: 14.35 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002285/0.01174, allocations: 131 kB / 247.5 MB, free: 14.21 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007153/0.01245, allocations: 314 kB / 247.8 MB, free: 13.87 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.967e-05/0.01249, allocations: 83.83 kB / 247.9 MB, free: 13.77 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.716e-05/0.01253, allocations: 9.141 kB / 247.9 MB, free: 13.76 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.18e-05/0.01261, allocations: 75.36 kB / 248 MB, free: 13.68 MB / 250.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01261, allocations: 0 / 248 MB, free: 13.68 MB / 250.7 MB Notification: Performance of Templates: time 0.003268/0.01588, allocations: 2.008 MB / 250 MB, free: 11.71 MB / 250.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 -ignoreHideResult -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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.1928129605948925]