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.001881/0.001881, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.001501/0.001501, allocations: 186 kB / 23.7 MB, free: 4.191 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.577/1.577, allocations: 225.7 MB / 252.5 MB, free: 12.84 MB / 206.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 0.001753/0.001753, allocations: 43.94 kB / 370.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3049, allocations: 52.18 MB / 423 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003549/0.3085, allocations: 1.956 MB / 425 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.3096, allocations: 0.5961 MB / 425.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.3097, allocations: 11.94 kB / 425.6 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.547e-05/0.3098, allocations: 19.73 kB / 425.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001113/0.3099, allocations: 19.8 kB / 425.7 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004192/0.3103, allocations: 111.7 kB / 425.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002669/0.3106, allocations: 211.9 kB / 426 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.3108, allocations: 64.84 kB / 426 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.311, allocations: 91.62 kB / 426.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.3111, allocations: 83.59 kB / 426.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.171e-05/0.3111, allocations: 24 kB / 426.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.357e-05/0.3112, allocations: 20 kB / 426.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.249e-05/0.3112, allocations: 35.92 kB / 426.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.094e-05/0.3113, allocations: 71.64 kB / 426.4 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002871/0.3116, allocations: 221.4 kB / 426.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3116, allocations: 3.984 kB / 426.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3116, allocations: 3.938 kB / 426.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.3116, allocations: 0 / 426.6 MB, free: 10.95 MB / 334.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.0009067/0.3125, allocations: 472.3 kB / 427 MB, free: 10.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.3125, allocations: 8.031 kB / 427 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.766e-05/0.3126, allocations: 20.84 kB / 427.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003602/0.313, allocations: 176.6 kB / 427.2 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.3131, allocations: 68.3 kB / 427.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.94e-05/0.3131, allocations: 19.94 kB / 427.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008027/0.3139, allocations: 367.2 kB / 427.7 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.3139, allocations: 0 / 427.7 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.314, allocations: 4 kB / 427.7 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.314, allocations: 4 kB / 427.7 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004396/0.3144, allocations: 131.8 kB / 427.8 MB, free: 9.609 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006655/0.3151, allocations: 361.1 kB / 428.2 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005087/0.3156, allocations: 193.1 kB / 428.4 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003016/0.3159, allocations: 97.59 kB / 428.5 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.618e-05/0.3159, allocations: 4 kB / 428.5 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003087/0.3162, allocations: 137 kB / 428.6 MB, free: 8.758 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 4.338e-06/0.3162, allocations: 4 kB / 428.6 MB, free: 8.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008373/0.3171, allocations: 282.3 kB / 428.9 MB, free: 8.473 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.432e-05/0.3172, allocations: 97 kB / 429 MB, free: 8.359 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.3173, allocations: 148.3 kB / 429.1 MB, free: 8.203 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.513e-05/0.3173, allocations: 33.7 kB / 429.1 MB, free: 8.164 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.94e-05/0.3174, allocations: 112.5 kB / 429.3 MB, free: 8.051 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.894e-05/0.3175, allocations: 43.72 kB / 429.3 MB, free: 8.008 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.178e-05/0.3176, allocations: 49.59 kB / 429.3 MB, free: 7.953 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.3177, allocations: 338.7 kB / 429.7 MB, free: 7.613 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002391/0.318, allocations: 93.89 kB / 429.8 MB, free: 7.516 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003025/0.3183, allocations: 168.4 kB / 429.9 MB, free: 7.309 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005149/0.3188, allocations: 235.8 kB / 430.2 MB, free: 7.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3188, allocations: 0 / 430.2 MB, free: 7.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006134/0.3194, allocations: 300.7 kB / 430.5 MB, free: 6.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.943e-05/0.3194, allocations: 33.7 kB / 430.5 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.3194, allocations: 7.984 kB / 430.5 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.3195, allocations: 4 kB / 430.5 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001981/0.3197, allocations: 44.25 kB / 430.5 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.998e-06/0.3197, allocations: 8 kB / 430.6 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.3199, allocations: 31.81 kB / 430.6 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.3199, allocations: 12 kB / 430.6 MB, free: 6.578 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 13 (rotationalClock.changed.y,$CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$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 (26): * Single equations (assignments): 25 * 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.0001543/0.32, allocations: 141.5 kB / 430.7 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002038/0.3202, allocations: 113.6 kB / 430.8 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.119e-05/0.3203, allocations: 20.72 kB / 430.9 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3203, allocations: 0 / 430.9 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.3203, allocations: 0 / 430.9 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.3203, allocations: 7.938 kB / 430.9 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007321/0.321, allocations: 414 kB / 431.3 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3211, allocations: 0 / 431.3 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001887/0.3212, allocations: 39.91 kB / 431.3 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.3212, allocations: 0 / 431.3 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.3213, allocations: 8 kB / 431.3 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.3213, allocations: 7.922 kB / 431.3 MB, free: 5.785 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.3213, allocations: 7.938 kB / 431.3 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006375/0.3219, allocations: 320.1 kB / 431.7 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.016e-05/0.3219, allocations: 15.84 kB / 431.7 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.824e-05/0.322, allocations: 15.92 kB / 431.7 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000178/0.3222, allocations: 15.92 kB / 431.7 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.344e-05/0.3222, allocations: 15.97 kB / 431.7 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.3222, allocations: 12 kB / 431.7 MB, free: 5.371 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.325e-05/0.3223, allocations: 110.2 kB / 431.8 MB, free: 5.266 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3223, allocations: 0 / 431.8 MB, free: 5.266 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.3226, allocations: 40 kB / 431.9 MB, free: 5.227 MB / 334.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.0001439/0.3228, allocations: 111.2 kB / 432 MB, free: 5.109 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006071/0.3234, allocations: 268.2 kB / 432.2 MB, free: 4.832 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3234, allocations: 0.6875 kB / 432.2 MB, free: 4.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001919/0.3236, allocations: 59.97 kB / 432.3 MB, free: 4.773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004589/0.324, allocations: 71.8 kB / 432.4 MB, free: 4.703 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007717/0.3248, allocations: 328.7 kB / 432.7 MB, free: 4.355 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001465/0.325, allocations: 120.3 kB / 432.8 MB, free: 4.207 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.416e-05/0.325, allocations: 17.36 kB / 432.8 MB, free: 4.191 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.065e-05/0.3251, allocations: 19.42 kB / 432.8 MB, free: 4.172 MB / 334.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3251, allocations: 0 / 432.8 MB, free: 4.172 MB / 334.1 MB Notification: Performance of Templates: time 0.006041/0.3312, allocations: 2.098 MB / 434.9 MB, free: 2.105 MB / 334.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.703131452202797]