Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.001521/0.001521, allocations: 88.64 kB / 20.96 MB, free: 3.449 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.001558/0.001558, allocations: 153.1 kB / 24.26 MB, free: 156 kB / 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 1.555/1.555, allocations: 173.4 MB / 200.8 MB, free: 9.34 MB / 186.7 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.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 267.3 MB, free: 6.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.973e-05/3.128e-05, allocations: 2.312 kB / 267.3 MB, free: 6.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.00306/0.003091, allocations: 1.437 MB / 268.7 MB, free: 5.316 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000381/0.003472, allocations: 107.6 kB / 268.9 MB, free: 5.211 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.118e-05/0.003553, allocations: 3.938 kB / 268.9 MB, free: 5.207 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.252e-05/0.003586, allocations: 0 / 268.9 MB, free: 5.207 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.564e-05/0.003641, allocations: 7.938 kB / 268.9 MB, free: 5.199 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002871/0.003928, allocations: 23.91 kB / 268.9 MB, free: 5.176 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001215/0.00405, allocations: 31.86 kB / 268.9 MB, free: 5.145 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.004151, allocations: 8 kB / 268.9 MB, free: 5.137 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.094e-05/0.004212, allocations: 11.98 kB / 268.9 MB, free: 5.125 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.767e-05/0.004259, allocations: 11.92 kB / 269 MB, free: 5.113 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.35e-05/0.004283, allocations: 4 kB / 269 MB, free: 5.109 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.866e-06/0.004292, allocations: 0 / 269 MB, free: 5.109 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.671e-05/0.004319, allocations: 7.984 kB / 269 MB, free: 5.102 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.538e-05/0.004354, allocations: 4 kB / 269 MB, free: 5.098 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001157/0.00447, allocations: 35.83 kB / 269 MB, free: 5.062 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.004474, allocations: 4 kB / 269 MB, free: 5.059 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.004476, allocations: 0 / 269 MB, free: 5.059 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5e-06/0.004481, allocations: 0 / 269 MB, free: 5.059 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005193/0.005, allocations: 270.2 kB / 269.3 MB, free: 4.762 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.005046, allocations: 8.031 kB / 269.3 MB, free: 4.754 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.108e-05/0.005097, allocations: 4.938 kB / 269.3 MB, free: 4.75 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002932/0.005391, allocations: 121.7 kB / 269.4 MB, free: 4.605 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.005408, allocations: 4.359 kB / 269.4 MB, free: 4.602 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.005429, allocations: 12.31 kB / 269.4 MB, free: 4.59 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003623/0.005791, allocations: 103.9 kB / 269.5 MB, free: 4.477 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.005801, allocations: 192 / 269.5 MB, free: 4.477 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.00581, allocations: 384 / 269.5 MB, free: 4.477 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.005815, allocations: 384 / 269.5 MB, free: 4.477 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.066e-05/0.005906, allocations: 23.92 kB / 269.5 MB, free: 4.453 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001682/0.006074, allocations: 105.3 kB / 269.6 MB, free: 4.32 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.006251, allocations: 50.55 kB / 269.7 MB, free: 4.262 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.923e-05/0.00632, allocations: 20.92 kB / 269.7 MB, free: 4.238 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.006345, allocations: 7.938 kB / 269.7 MB, free: 4.23 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.006386, allocations: 34.56 kB / 269.8 MB, free: 4.188 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.006387, allocations: 0 / 269.8 MB, free: 4.188 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002635/0.00665, allocations: 77.56 kB / 269.8 MB, free: 4.105 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.006707, allocations: 51.41 kB / 269.9 MB, free: 4.043 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001632/0.00687, allocations: 109.8 kB / 270 MB, free: 3.926 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.006891, allocations: 29.7 kB / 270 MB, free: 3.891 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.532e-05/0.006957, allocations: 84.14 kB / 270.1 MB, free: 3.805 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.956e-06/0.00696, allocations: 4 kB / 270.1 MB, free: 3.801 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.943e-05/0.006989, allocations: 9.719 kB / 270.1 MB, free: 3.785 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.007179, allocations: 314.8 kB / 270.4 MB, free: 3.469 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.509e-06/0.007183, allocations: 3.938 kB / 270.4 MB, free: 3.465 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.687e-06/0.007187, allocations: 4 kB / 270.4 MB, free: 3.461 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.669e-05/0.007234, allocations: 75.28 kB / 270.5 MB, free: 3.387 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.264e-05/0.007276, allocations: 75.28 kB / 270.6 MB, free: 3.312 MB / 250.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.473e-05/0.007341, allocations: 33.7 kB / 270.6 MB, free: 3.273 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.253e-05/0.007394, allocations: 79.28 kB / 270.7 MB, free: 3.195 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.962e-05/0.007443, allocations: 87.28 kB / 270.8 MB, free: 3.109 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000157/0.0076, allocations: 154.6 kB / 270.9 MB, free: 2.957 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.304e-05/0.007643, allocations: 75.28 kB / 271 MB, free: 2.883 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.38e-05/0.007737, allocations: 154.5 kB / 271.1 MB, free: 2.73 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.007839, allocations: 87.2 kB / 271.2 MB, free: 2.645 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.484e-05/0.007884, allocations: 79.22 kB / 271.3 MB, free: 2.566 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0001357/0.008019, allocations: 185.1 kB / 271.5 MB, free: 2.375 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.008156, allocations: 57.64 kB / 271.5 MB, free: 2.312 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.014e-05/0.008196, allocations: 11.98 kB / 271.6 MB, free: 2.293 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.0082, allocations: 8 kB / 271.6 MB, free: 2.285 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.008205, allocations: 0 / 271.6 MB, free: 2.285 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.008211, allocations: 4.172 kB / 271.6 MB, free: 2.281 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001058/0.008317, allocations: 101.6 kB / 271.7 MB, free: 2.152 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.008324, allocations: 4 kB / 271.7 MB, free: 2.148 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.277e-05/0.008417, allocations: 7.984 kB / 271.7 MB, free: 2.141 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.008424, allocations: 7.984 kB / 271.7 MB, free: 2.133 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.00843, allocations: 0 / 271.7 MB, free: 2.133 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.008433, allocations: 0 / 271.7 MB, free: 2.133 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.008434, allocations: 0 / 271.7 MB, free: 2.133 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001847/0.008619, allocations: 92.98 kB / 271.8 MB, free: 2.023 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.379e-05/0.008633, allocations: 11.89 kB / 271.8 MB, free: 2.012 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.204e-05/0.008645, allocations: 0 / 271.8 MB, free: 2.012 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.848e-05/0.008673, allocations: 7.938 kB / 271.8 MB, free: 2.004 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.1e-05/0.008684, allocations: 0 / 271.8 MB, free: 2.004 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/0.008691, allocations: 0 / 271.8 MB, free: 2.004 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.153e-05/0.008762, allocations: 87.27 kB / 271.9 MB, free: 1.918 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008762, allocations: 0 / 271.9 MB, free: 1.918 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002402/0.009002, allocations: 4 kB / 271.9 MB, free: 1.914 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001543/0.009157, allocations: 103.2 kB / 272 MB, free: 1.805 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.805e-05/0.009255, allocations: 19.92 kB / 272 MB, free: 1.785 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.009257, allocations: 0 / 272 MB, free: 1.785 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.81e-07/0.009257, allocations: 0 / 272 MB, free: 1.785 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/0.009522, allocations: 21.11 kB / 272 MB, free: 1.762 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003233/0.009845, allocations: 111.5 kB / 272.1 MB, free: 1.629 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.677e-05/0.009922, allocations: 71.25 kB / 272.2 MB, free: 1.539 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.011e-05/0.009932, allocations: 0 / 272.2 MB, free: 1.539 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.082e-05/0.009963, allocations: 8.5 kB / 272.2 MB, free: 1.531 MB / 250.7 MB Notification: Performance of SimCode: time 6.21e-07/0.009963, allocations: 8 kB / 272.2 MB, free: 1.523 MB / 250.7 MB Notification: Performance of Templates: time 0.002759/0.01272, allocations: 305.4 kB / 272.5 MB, free: 1.23 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.232358232024126]