Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.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.001085/0.001085, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 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.001126/0.001126, allocations: 169.8 kB / 24.82 MB, free: 9.273 MB / 18.57 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.203/1.203, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.422/0.422, allocations: 34.25 MB / 296.1 MB, free: 0.6523 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Blocks.ZeroThresholds,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|ramp.y|greaterThreshold.y|greaterEqualThreshold.y|lessThreshold.y|lessEqualThreshold.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds") translateModel(ModelicaTest.Blocks.ZeroThresholds,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|ramp.y|greaterThreshold.y|greaterEqualThreshold.y|lessThreshold.y|lessEqualThreshold.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.514e-06/2.514e-06, allocations: 0 / 378.5 MB, free: 2.379 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.061e-05/2.312e-05, allocations: 2.312 kB / 378.5 MB, free: 2.375 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002674/0.002697, allocations: 1.724 MB / 380.2 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004977/0.003195, allocations: 155.4 kB / 380.4 MB, free: 496 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.003299, allocations: 4 kB / 380.4 MB, free: 492 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 4.264e-05/0.003341, allocations: 11.86 kB / 380.4 MB, free: 480 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.013e-05/0.003411, allocations: 11.81 kB / 380.4 MB, free: 468 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004752/0.003887, allocations: 103.8 kB / 380.5 MB, free: 364 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000216/0.004103, allocations: 115.7 kB / 380.6 MB, free: 248 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001474/0.00425, allocations: 21.48 kB / 380.6 MB, free: 224 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.004376, allocations: 67.88 kB / 380.7 MB, free: 156 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.441e-05/0.00443, allocations: 23.91 kB / 380.7 MB, free: 132 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.807e-05/0.004458, allocations: 8 kB / 380.7 MB, free: 124 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.459e-05/0.004473, allocations: 8 kB / 380.7 MB, free: 116 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.202e-05/0.004505, allocations: 27.91 kB / 380.8 MB, free: 88 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.37e-05/0.004538, allocations: 23.92 kB / 380.8 MB, free: 64 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001572/0.004696, allocations: 75.72 kB / 380.9 MB, free: 15.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.004698, allocations: 0 / 380.9 MB, free: 15.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.004699, allocations: 3.938 kB / 380.9 MB, free: 15.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.004704, allocations: 4 kB / 380.9 MB, free: 15.98 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0005489/0.005253, allocations: 448.1 kB / 381.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.005306, allocations: 16.02 kB / 381.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.642e-05/0.005352, allocations: 16.89 kB / 381.3 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001785/0.005531, allocations: 148.4 kB / 381.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.005541, allocations: 4.375 kB / 381.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.802e-05/0.005559, allocations: 8.375 kB / 381.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000238/0.005797, allocations: 206.5 kB / 381.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.005804, allocations: 192 / 381.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.005816, allocations: 8.375 kB / 381.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.005821, allocations: 384 / 381.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.547e-05/0.005876, allocations: 31.84 kB / 381.7 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004895/0.006366, allocations: 0.5644 MB / 382.3 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001146/0.00648, allocations: 78.94 kB / 382.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.721e-05/0.006518, allocations: 19.7 kB / 382.4 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.36e-05/0.006541, allocations: 4 kB / 382.4 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.006566, allocations: 37.39 kB / 382.4 MB, free: 14.24 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.813e-06/0.006568, allocations: 0 / 382.4 MB, free: 14.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001869/0.006755, allocations: 81.52 kB / 382.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.006809, allocations: 106.8 kB / 382.6 MB, free: 14.03 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.006916, allocations: 189.9 kB / 382.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.006933, allocations: 29.7 kB / 382.8 MB, free: 13.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.012e-05/0.007013, allocations: 154.8 kB / 383 MB, free: 13.63 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.515e-05/0.007029, allocations: 23.8 kB / 383 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.726e-05/0.007076, allocations: 43.34 kB / 383.1 MB, free: 13.56 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.007219, allocations: 0.4884 MB / 383.6 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.061e-05/0.007239, allocations: 11.98 kB / 383.6 MB, free: 13.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.135e-05/0.007311, allocations: 117.7 kB / 383.7 MB, free: 12.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.261e-05/0.007363, allocations: 39.06 kB / 383.7 MB, free: 12.85 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.007365, allocations: 4 kB / 383.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001153/0.00748, allocations: 89.48 kB / 383.8 MB, free: 12.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.007494, allocations: 4.094 kB / 383.8 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.0075, allocations: 4 kB / 383.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.007511, allocations: 4 kB / 383.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.742e-05/0.007589, allocations: 19.92 kB / 383.8 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.678e-06/0.007593, allocations: 3.938 kB / 383.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.941e-05/0.007653, allocations: 23.94 kB / 383.9 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.007661, allocations: 4 kB / 383.9 MB, free: 12.69 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001047/0.007766, allocations: 164.6 kB / 384 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.539e-05/0.007791, allocations: 15.89 kB / 384 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.858e-05/0.00783, allocations: 12.78 kB / 384.1 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-06/0.007832, allocations: 0 / 384.1 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.007835, allocations: 4 kB / 384.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.00784, allocations: 0 / 384.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001369/0.007977, allocations: 125.2 kB / 384.2 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.00798, allocations: 3.984 kB / 384.2 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.911e-05/0.008019, allocations: 15.92 kB / 384.2 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.351e-06/0.008025, allocations: 7.938 kB / 384.2 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-06/0.008032, allocations: 4 kB / 384.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.008034, allocations: 0 / 384.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.008035, allocations: 4 kB / 384.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001533/0.008189, allocations: 215.9 kB / 384.4 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.432e-05/0.008203, allocations: 11.91 kB / 384.4 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.00822, allocations: 7.938 kB / 384.4 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.711e-05/0.008277, allocations: 19.98 kB / 384.5 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.354e-05/0.008321, allocations: 11.98 kB / 384.5 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.008324, allocations: 0 / 384.5 MB, free: 12.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.452e-05/0.008398, allocations: 146.1 kB / 384.6 MB, free: 11.88 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.008399, allocations: 0 / 384.6 MB, free: 11.88 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000163/0.008562, allocations: 23.94 kB / 384.6 MB, free: 11.86 MB / 362.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: 4 (greaterThreshold.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 8.763e-05/0.008649, allocations: 95.25 kB / 384.7 MB, free: 11.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001225/0.008772, allocations: 43.59 kB / 384.8 MB, free: 11.71 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.008774, allocations: 0 / 384.8 MB, free: 11.71 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.024e-05/0.008814, allocations: 36.28 kB / 384.8 MB, free: 11.67 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002093/0.009023, allocations: 27.12 kB / 384.8 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003463/0.009369, allocations: 197.8 kB / 385 MB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.577e-05/0.009415, allocations: 63.34 kB / 385.1 MB, free: 11.34 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.122e-05/0.009456, allocations: 12.86 kB / 385.1 MB, free: 11.33 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.009565, allocations: 102.2 kB / 385.2 MB, free: 11.23 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.009565, allocations: 3.938 kB / 385.2 MB, free: 11.22 MB / 362.7 MB Notification: Performance of Templates: time 0.003481/0.01305, allocations: 1.699 MB / 386.9 MB, free: 9.547 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ZeroThresholds/ZeroThresholds.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: 3.6990950708277524]