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.001255/0.001255, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.0009996/0.0009996, allocations: 170.3 kB / 24.91 MB, free: 8.766 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 0.9659/0.9659, allocations: 177.1 MB / 205.3 MB, free: 5.105 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.2563/0.2563, allocations: 34.26 MB / 296.1 MB, free: 0.6172 MB / 266.7 MB " [Timeout remaining time 180] 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 1.482e-06/1.482e-06, allocations: 0 / 325.2 MB, free: 7.707 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.835e-05/1.984e-05, allocations: 3.953 kB / 325.2 MB, free: 7.703 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002118/0.002138, allocations: 1.743 MB / 327 MB, free: 5.953 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003747/0.002513, allocations: 167.4 kB / 327.1 MB, free: 5.789 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.83e-05/0.002581, allocations: 3.938 kB / 327.1 MB, free: 5.785 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.215e-05/0.002613, allocations: 7.875 kB / 327.2 MB, free: 5.777 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.456e-05/0.002668, allocations: 15.86 kB / 327.2 MB, free: 5.762 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002605/0.002928, allocations: 103.8 kB / 327.3 MB, free: 5.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001503/0.003079, allocations: 99.77 kB / 327.4 MB, free: 5.562 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.003181, allocations: 30.16 kB / 327.4 MB, free: 5.531 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.8e-05/0.003269, allocations: 59.89 kB / 327.5 MB, free: 5.473 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.232e-05/0.003321, allocations: 27.89 kB / 327.5 MB, free: 5.445 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.771e-05/0.003349, allocations: 8 kB / 327.5 MB, free: 5.438 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.122e-05/0.00336, allocations: 12 kB / 327.5 MB, free: 5.426 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.414e-05/0.003384, allocations: 19.92 kB / 327.5 MB, free: 5.406 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.925e-05/0.003413, allocations: 32.53 kB / 327.6 MB, free: 5.375 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001066/0.00352, allocations: 79.66 kB / 327.6 MB, free: 5.297 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.784e-06/0.003522, allocations: 4 kB / 327.6 MB, free: 5.293 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.003522, allocations: 0 / 327.6 MB, free: 5.293 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.525e-06/0.003525, allocations: 0 / 327.6 MB, free: 5.293 MB / 298.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.000362/0.003887, allocations: 321.9 kB / 327.9 MB, free: 4.953 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.696e-05/0.003914, allocations: 8.031 kB / 328 MB, free: 4.945 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.165e-05/0.003956, allocations: 16.92 kB / 328 MB, free: 4.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001507/0.004106, allocations: 133.6 kB / 328.1 MB, free: 4.773 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.275e-06/0.004114, allocations: 8.375 kB / 328.1 MB, free: 4.766 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.338e-05/0.004128, allocations: 8.375 kB / 328.1 MB, free: 4.758 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001869/0.004315, allocations: 187.5 kB / 328.3 MB, free: 4.539 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.004323, allocations: 192 / 328.3 MB, free: 4.539 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.004334, allocations: 4.375 kB / 328.3 MB, free: 4.535 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.00434, allocations: 4.375 kB / 328.3 MB, free: 4.531 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.884e-05/0.004389, allocations: 31.8 kB / 328.3 MB, free: 4.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003394/0.004728, allocations: 396.4 kB / 328.7 MB, free: 4.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.626e-05/0.004825, allocations: 58.53 kB / 328.8 MB, free: 4.023 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.375e-05/0.004848, allocations: 16.8 kB / 328.8 MB, free: 4.004 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.004862, allocations: 4 kB / 328.8 MB, free: 4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.384e-05/0.004886, allocations: 30.56 kB / 328.8 MB, free: 3.961 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 9.42e-07/0.004887, allocations: 0 / 328.8 MB, free: 3.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001244/0.005011, allocations: 65.61 kB / 328.9 MB, free: 3.891 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/0.005056, allocations: 106.8 kB / 329 MB, free: 3.762 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.021e-05/0.005137, allocations: 146.7 kB / 329.1 MB, free: 3.605 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.232e-05/0.005149, allocations: 25.7 kB / 329.2 MB, free: 3.574 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.567e-05/0.005205, allocations: 104 kB / 329.3 MB, free: 3.469 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.33e-05/0.005218, allocations: 27.77 kB / 329.3 MB, free: 3.441 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.37e-05/0.005252, allocations: 29.69 kB / 329.3 MB, free: 3.406 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.014e-05/0.005332, allocations: 318.8 kB / 329.6 MB, free: 3.086 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.707e-05/0.005349, allocations: 8 kB / 329.7 MB, free: 3.078 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.114e-05/0.0054, allocations: 99.62 kB / 329.7 MB, free: 2.953 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.584e-05/0.005446, allocations: 38.55 kB / 329.8 MB, free: 2.906 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.005448, allocations: 0 / 329.8 MB, free: 2.906 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 8.104e-05/0.005529, allocations: 77.52 kB / 329.9 MB, free: 2.824 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.005541, allocations: 7.984 kB / 329.9 MB, free: 2.816 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.005546, allocations: 7.938 kB / 329.9 MB, free: 2.809 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.005558, allocations: 0 / 329.9 MB, free: 2.809 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.744e-05/0.005625, allocations: 19.97 kB / 329.9 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.69e-06/0.005631, allocations: 4 kB / 329.9 MB, free: 2.785 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.021e-05/0.005681, allocations: 23.94 kB / 329.9 MB, free: 2.762 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-06/0.005686, allocations: 400 / 329.9 MB, free: 2.762 MB / 298.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 6.339e-05/0.00575, allocations: 113.9 kB / 330 MB, free: 2.641 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.962e-05/0.005769, allocations: 19.92 kB / 330.1 MB, free: 2.621 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.414e-05/0.005793, allocations: 8.781 kB / 330.1 MB, free: 2.609 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.005796, allocations: 4 kB / 330.1 MB, free: 2.605 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.005797, allocations: 0 / 330.1 MB, free: 2.605 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.005801, allocations: 3.984 kB / 330.1 MB, free: 2.602 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.005906, allocations: 97.73 kB / 330.2 MB, free: 2.488 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.005906, allocations: 4 kB / 330.2 MB, free: 2.484 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.271e-05/0.005939, allocations: 11.98 kB / 330.2 MB, free: 2.473 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.00594, allocations: 0 / 330.2 MB, free: 2.473 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.581e-06/0.005946, allocations: 7.938 kB / 330.2 MB, free: 2.465 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.005947, allocations: 4 kB / 330.2 MB, free: 2.461 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.005949, allocations: 3.984 kB / 330.2 MB, free: 2.457 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.243e-05/0.006042, allocations: 159.5 kB / 330.4 MB, free: 2.285 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.656e-06/0.00605, allocations: 7.953 kB / 330.4 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.116e-05/0.006061, allocations: 3.938 kB / 330.4 MB, free: 2.273 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.554e-05/0.006117, allocations: 15.98 kB / 330.4 MB, free: 2.258 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.281e-05/0.00615, allocations: 15.92 kB / 330.4 MB, free: 2.242 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.488e-06/0.006154, allocations: 4 kB / 330.4 MB, free: 2.238 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.405e-05/0.006178, allocations: 31.41 kB / 330.4 MB, free: 2.207 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006178, allocations: 0 / 330.4 MB, free: 2.207 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001285/0.006307, allocations: 23.95 kB / 330.5 MB, free: 2.184 MB / 298.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.093e-05/0.006388, allocations: 77.73 kB / 330.5 MB, free: 2.102 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.579e-05/0.006484, allocations: 41.27 kB / 330.6 MB, free: 2.059 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.006487, allocations: 4 kB / 330.6 MB, free: 2.055 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.774e-05/0.006515, allocations: 20.84 kB / 330.6 MB, free: 2.031 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000151/0.006666, allocations: 23.98 kB / 330.6 MB, free: 2.008 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000336/0.007002, allocations: 212.8 kB / 330.8 MB, free: 1.777 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.988e-05/0.007042, allocations: 63.34 kB / 330.9 MB, free: 1.695 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.794e-05/0.007079, allocations: 8.734 kB / 330.9 MB, free: 1.684 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.531e-05/0.007175, allocations: 83.28 kB / 331 MB, free: 1.602 MB / 298.7 MB Notification: Performance of SimCode: time 6.72e-07/0.007175, allocations: 0 / 331 MB, free: 1.602 MB / 298.7 MB Notification: Performance of Templates: time 0.002965/0.01014, allocations: 1.64 MB / 332.6 MB, free: 15.99 MB / 314.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: 2.848893699236214]