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.001699/0.001699, allocations: 76.05 kB / 21.24 MB, free: 400 kB / 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.001624/0.001624, allocations: 157.4 kB / 24.48 MB, free: 3.465 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.502/1.502, allocations: 173.4 MB / 201 MB, free: 12.57 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 0.00159/0.00159, allocations: 46.08 kB / 319.4 MB, free: 3.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09696/0.09855, allocations: 52.16 MB / 371.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003418/0.102, allocations: 1.94 MB / 373.5 MB, free: 5.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.1032, allocations: 0.6078 MB / 374.1 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001259/0.1033, allocations: 7.938 kB / 374.1 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.405e-05/0.1033, allocations: 15.8 kB / 374.1 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.1035, allocations: 15.75 kB / 374.1 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004257/0.1039, allocations: 115.8 kB / 374.3 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002862/0.1042, allocations: 212 kB / 374.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001853/0.1044, allocations: 68.83 kB / 374.5 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.1045, allocations: 87.7 kB / 374.6 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/0.1047, allocations: 79.59 kB / 374.7 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.28e-05/0.1047, allocations: 20 kB / 374.7 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.52e-05/0.1048, allocations: 20 kB / 374.7 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.775e-05/0.1048, allocations: 47.84 kB / 374.8 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.348e-05/0.1049, allocations: 71.64 kB / 374.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003151/0.1052, allocations: 215.1 kB / 375.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1052, allocations: 0 / 375.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1052, allocations: 0 / 375.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.1052, allocations: 4 kB / 375.1 MB, free: 3.844 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.0009396/0.1062, allocations: 469.2 kB / 375.5 MB, free: 3.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.1062, allocations: 8.922 kB / 375.5 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.341e-05/0.1063, allocations: 20.84 kB / 375.6 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003618/0.1067, allocations: 178.8 kB / 375.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.132e-05/0.1067, allocations: 64.3 kB / 375.8 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.124e-05/0.1068, allocations: 15.94 kB / 375.8 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007669/0.1075, allocations: 364.6 kB / 376.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.1076, allocations: 0 / 376.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.25e-05/0.1076, allocations: 4 kB / 376.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.1076, allocations: 4 kB / 376.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004399/0.108, allocations: 135.8 kB / 376.3 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006328/0.1087, allocations: 365.1 kB / 376.7 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005374/0.1092, allocations: 189.1 kB / 376.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002619/0.1095, allocations: 97.8 kB / 376.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.565e-05/0.1095, allocations: 11.92 kB / 376.9 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003116/0.1098, allocations: 137 kB / 377.1 MB, free: 1.645 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.1098, allocations: 0 / 377.1 MB, free: 1.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008519/0.1107, allocations: 293.2 kB / 377.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.731e-05/0.1107, allocations: 93.06 kB / 377.5 MB, free: 1.242 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.1109, allocations: 153.4 kB / 377.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.17e-05/0.1109, allocations: 37.7 kB / 377.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.984e-05/0.111, allocations: 108.5 kB / 377.8 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.918e-05/0.111, allocations: 35.73 kB / 377.8 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.541e-05/0.1111, allocations: 49.66 kB / 377.8 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.1113, allocations: 330.8 kB / 378.2 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002247/0.1115, allocations: 93.88 kB / 378.3 MB, free: 420 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002772/0.1118, allocations: 172.4 kB / 378.4 MB, free: 204 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004582/0.1122, allocations: 223.9 kB / 378.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1122, allocations: 4 kB / 378.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006265/0.1129, allocations: 311.9 kB / 378.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.213e-05/0.1129, allocations: 38.05 kB / 379 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1129, allocations: 8 kB / 379 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.1129, allocations: 4 kB / 379 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002153/0.1131, allocations: 39.97 kB / 379 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.1132, allocations: 7.938 kB / 379 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001933/0.1134, allocations: 35.75 kB / 379.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.609e-05/0.1134, allocations: 11.98 kB / 379.1 MB, free: 15.46 MB / 350.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.000142/0.1135, allocations: 141.5 kB / 379.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001976/0.1137, allocations: 105.6 kB / 379.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.132e-05/0.1138, allocations: 24.78 kB / 379.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.1138, allocations: 0 / 379.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.1138, allocations: 0 / 379.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.1138, allocations: 11.92 kB / 379.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007121/0.1145, allocations: 406 kB / 379.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1145, allocations: 0 / 379.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001988/0.1147, allocations: 43.91 kB / 379.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.1147, allocations: 4 kB / 379.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.723e-05/0.1147, allocations: 7.984 kB / 379.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.1147, allocations: 3.938 kB / 379.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1147, allocations: 4 kB / 379.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005949/0.1153, allocations: 320.1 kB / 380.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.607e-05/0.1154, allocations: 19.84 kB / 380.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.514e-05/0.1154, allocations: 8 kB / 380.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.1156, allocations: 23.91 kB / 380.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.256e-05/0.1156, allocations: 19.98 kB / 380.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.1157, allocations: 7.984 kB / 380.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.038e-05/0.1157, allocations: 111.2 kB / 380.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1157, allocations: 0 / 380.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003015/0.1161, allocations: 32 kB / 380.4 MB, free: 14.12 MB / 350.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.000122/0.1162, allocations: 115.2 kB / 380.5 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006238/0.1168, allocations: 269.1 kB / 380.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1168, allocations: 0 / 380.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001973/0.117, allocations: 63.89 kB / 380.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004545/0.1175, allocations: 64.48 kB / 380.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007161/0.1182, allocations: 333.1 kB / 381.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001218/0.1183, allocations: 117.1 kB / 381.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.637e-05/0.1184, allocations: 13.48 kB / 381.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.091e-05/0.1184, allocations: 24.5 kB / 381.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1184, allocations: 0 / 381.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of Templates: time 0.005949/0.1244, allocations: 2.01 MB / 383.3 MB, free: 11.08 MB / 350.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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/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.518554998910986]