Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000946/0.000946, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001318/0.002264, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007023/0.0007023, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009466/0.001649, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.081/1.081, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08528/1.166, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0 / 244.5 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.138e-05/3.358e-05, allocations: 2.312 kB / 244.5 MB, free: 14.35 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003793/0.003826, allocations: 2.079 MB / 246.6 MB, free: 12.25 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.005056, allocations: 0.7047 MB / 247.3 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.005174, allocations: 7.938 kB / 247.3 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.671e-05/0.005231, allocations: 19.73 kB / 247.3 MB, free: 11.52 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.409e-05/0.005325, allocations: 27.73 kB / 247.3 MB, free: 11.49 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004247/0.00575, allocations: 127.5 kB / 247.5 MB, free: 11.36 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002827/0.006032, allocations: 204 kB / 247.7 MB, free: 11.16 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.00621, allocations: 66.2 kB / 247.7 MB, free: 11.1 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003139/0.006524, allocations: 139.7 kB / 247.9 MB, free: 10.96 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.006652, allocations: 75.77 kB / 247.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.00669, allocations: 16 kB / 248 MB, free: 10.88 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.252e-05/0.006762, allocations: 24 kB / 248 MB, free: 10.85 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.56e-05/0.006808, allocations: 35.88 kB / 248 MB, free: 10.82 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.142e-05/0.006869, allocations: 43.88 kB / 248.1 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002474/0.007117, allocations: 135.5 kB / 248.2 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.707e-05/0.007134, allocations: 3.938 kB / 248.2 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.007135, allocations: 0 / 248.2 MB, free: 10.64 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.613e-05/0.007151, allocations: 0 / 248.2 MB, free: 10.64 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.0007589/0.00791, allocations: 467.5 kB / 248.6 MB, free: 10.14 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.007952, allocations: 11.98 kB / 248.7 MB, free: 10.13 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000206/0.008158, allocations: 126 kB / 248.8 MB, free: 9.988 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002493/0.008407, allocations: 158 kB / 248.9 MB, free: 9.809 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.255e-05/0.008479, allocations: 68.28 kB / 249 MB, free: 9.73 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.103e-05/0.00851, allocations: 16.38 kB / 249 MB, free: 9.715 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004794/0.00899, allocations: 313.2 kB / 249.3 MB, free: 9.387 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.009, allocations: 0 / 249.3 MB, free: 9.387 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.009e-05/0.00902, allocations: 8 kB / 249.3 MB, free: 9.379 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.009026, allocations: 0 / 249.3 MB, free: 9.379 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001045/0.009131, allocations: 43.91 kB / 249.4 MB, free: 9.336 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004641/0.009595, allocations: 252.8 kB / 249.6 MB, free: 9.07 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002047/0.0098, allocations: 121 kB / 249.7 MB, free: 8.934 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.985e-05/0.00987, allocations: 49.62 kB / 249.8 MB, free: 8.879 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.009898, allocations: 4.188 kB / 249.8 MB, free: 8.875 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001409/0.01004, allocations: 116.9 kB / 249.9 MB, free: 8.742 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.923e-06/0.01004, allocations: 0 / 249.9 MB, free: 8.742 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002707/0.01031, allocations: 141.6 kB / 250 MB, free: 8.598 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.38e-05/0.01039, allocations: 97.05 kB / 250.1 MB, free: 8.484 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.0105, allocations: 154.5 kB / 250.3 MB, free: 8.32 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.01053, allocations: 29.7 kB / 250.3 MB, free: 8.285 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.008e-05/0.01059, allocations: 112.5 kB / 250.4 MB, free: 8.172 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.236e-05/0.01062, allocations: 39.67 kB / 250.5 MB, free: 8.133 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.593e-05/0.01067, allocations: 33.69 kB / 250.5 MB, free: 8.094 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.512e-05/0.01077, allocations: 322.8 kB / 250.8 MB, free: 7.77 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.72e-05/0.01083, allocations: 45.69 kB / 250.9 MB, free: 7.719 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.331e-05/0.01089, allocations: 59.39 kB / 250.9 MB, free: 7.648 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.571e-05/0.01099, allocations: 75.42 kB / 251 MB, free: 7.562 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.01099, allocations: 0 / 251 MB, free: 7.562 MB / 250.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001692/0.01116, allocations: 156.7 kB / 251.1 MB, free: 7.395 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.337e-05/0.0112, allocations: 33.64 kB / 251.2 MB, free: 7.355 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.289e-06/0.01121, allocations: 0 / 251.2 MB, free: 7.355 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.01122, allocations: 4 kB / 251.2 MB, free: 7.352 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.01135, allocations: 27.92 kB / 251.2 MB, free: 7.324 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.805e-06/0.01135, allocations: 0 / 251.2 MB, free: 7.324 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.353e-05/0.01145, allocations: 19.92 kB / 251.2 MB, free: 7.305 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.01146, allocations: 8.016 kB / 251.2 MB, free: 7.297 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 0.0001002/0.01156, allocations: 129.8 kB / 251.4 MB, free: 7.16 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.01167, allocations: 77.53 kB / 251.4 MB, free: 7.078 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.758e-05/0.01172, allocations: 20.78 kB / 251.5 MB, free: 7.059 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.01172, allocations: 4 kB / 251.5 MB, free: 7.055 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.01173, allocations: 0 / 251.5 MB, free: 7.055 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.01173, allocations: 3.984 kB / 251.5 MB, free: 7.051 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000327/0.01206, allocations: 266.5 kB / 251.7 MB, free: 6.766 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.01206, allocations: 0 / 251.7 MB, free: 6.766 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001445/0.01221, allocations: 55.89 kB / 251.8 MB, free: 6.711 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.111e-05/0.01223, allocations: 11.91 kB / 251.8 MB, free: 6.699 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.01223, allocations: 0 / 251.8 MB, free: 6.699 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.01224, allocations: 4 kB / 251.8 MB, free: 6.695 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.01225, allocations: 0 / 251.8 MB, free: 6.695 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.01225, allocations: 0 / 251.8 MB, free: 6.695 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001734/0.01242, allocations: 185.3 kB / 252 MB, free: 6.496 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.743e-05/0.01245, allocations: 4 kB / 252 MB, free: 6.492 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.01257, allocations: 15.98 kB / 252 MB, free: 6.477 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.192e-05/0.01262, allocations: 11.97 kB / 252 MB, free: 6.465 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.01264, allocations: 12 kB / 252 MB, free: 6.453 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.927e-05/0.01268, allocations: 36.88 kB / 252.1 MB, free: 6.418 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01268, allocations: 3.938 kB / 252.1 MB, free: 6.414 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002382/0.01291, allocations: 39.89 kB / 252.1 MB, free: 6.375 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 0.0001121/0.01303, allocations: 88.36 kB / 252.2 MB, free: 6.281 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002059/0.01323, allocations: 153.9 kB / 252.3 MB, free: 6.109 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/0.01324, allocations: 0 / 252.3 MB, free: 6.109 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.252e-05/0.0133, allocations: 40.88 kB / 252.4 MB, free: 6.066 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.01362, allocations: 75.75 kB / 252.5 MB, free: 5.992 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.01476, allocations: 309.9 kB / 252.8 MB, free: 5.652 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.678e-05/0.01482, allocations: 83.77 kB / 252.8 MB, free: 5.551 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.574e-05/0.01489, allocations: 21.12 kB / 252.9 MB, free: 5.531 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.015, allocations: 71.36 kB / 252.9 MB, free: 5.461 MB / 250.7 MB Notification: Performance of SimCode: time 1.042e-06/0.015, allocations: 0 / 252.9 MB, free: 5.461 MB / 250.7 MB Notification: Performance of Templates: time 0.005226/0.02023, allocations: 1.998 MB / 254.9 MB, free: 3.504 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.540282567963004]