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.001726/0.001726, allocations: 84.34 kB / 20.95 MB, free: 3.453 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.001927/0.001927, allocations: 169.3 kB / 24.27 MB, free: 144 kB / 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.512/1.512, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] 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.3499/0.3499, allocations: 34.25 MB / 295.3 MB, free: 0.6953 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.285e-06/2.285e-06, allocations: 0 / 377.3 MB, free: 2.969 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.894e-05/3.123e-05, allocations: 2.312 kB / 377.3 MB, free: 2.965 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.00325/0.003281, allocations: 1.701 MB / 379 MB, free: 1.25 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005065/0.003788, allocations: 151.5 kB / 379.1 MB, free: 1.102 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.834e-05/0.003876, allocations: 7.938 kB / 379.1 MB, free: 1.094 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 4.607e-05/0.003922, allocations: 11.86 kB / 379.1 MB, free: 1.082 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.941e-05/0.003991, allocations: 7.875 kB / 379.2 MB, free: 1.074 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004132/0.004405, allocations: 107.7 kB / 379.3 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002077/0.004612, allocations: 107.7 kB / 379.4 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.004747, allocations: 21.58 kB / 379.4 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.004871, allocations: 59.88 kB / 379.4 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.479e-05/0.004935, allocations: 31.91 kB / 379.5 MB, free: 0.75 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.914e-05/0.004964, allocations: 8 kB / 379.5 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.005e-05/0.004985, allocations: 8 kB / 379.5 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.576e-05/0.00502, allocations: 27.91 kB / 379.5 MB, free: 0.707 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.923e-05/0.00508, allocations: 23.92 kB / 379.5 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001808/0.00526, allocations: 99.61 kB / 379.6 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.534e-06/0.005263, allocations: 4 kB / 379.6 MB, free: 0.582 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.005264, allocations: 0 / 379.6 MB, free: 0.582 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.005269, allocations: 4 kB / 379.6 MB, free: 0.5781 MB / 346.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.0007665/0.006035, allocations: 365.9 kB / 380 MB, free: 192 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.006072, allocations: 8.031 kB / 380 MB, free: 184 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.585e-05/0.006138, allocations: 16.89 kB / 380 MB, free: 168 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.006421, allocations: 149.5 kB / 380.2 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.006435, allocations: 12.31 kB / 380.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.402e-05/0.006459, allocations: 12.38 kB / 380.2 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004199/0.006879, allocations: 195.8 kB / 380.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.00689, allocations: 4.125 kB / 380.4 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.006908, allocations: 4.375 kB / 380.4 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.006915, allocations: 4.375 kB / 380.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004071/0.007322, allocations: 111.8 kB / 380.5 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008896/0.008212, allocations: 476.6 kB / 381 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000449/0.008661, allocations: 138.5 kB / 381.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000191/0.008852, allocations: 56.75 kB / 381.2 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.008878, allocations: 0 / 381.2 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.805e-05/0.008916, allocations: 34.56 kB / 381.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.008917, allocations: 4 kB / 381.2 MB, free: 14.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.000735/0.009652, allocations: 193.5 kB / 381.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.947e-05/0.009742, allocations: 102.8 kB / 381.5 MB, free: 14.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.009905, allocations: 144.7 kB / 381.6 MB, free: 14.4 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.096e-05/0.009936, allocations: 25.7 kB / 381.7 MB, free: 14.37 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.245e-05/0.01003, allocations: 112.1 kB / 381.8 MB, free: 14.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.325e-05/0.01005, allocations: 19.8 kB / 381.8 MB, free: 14.23 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.078e-05/0.01011, allocations: 37.7 kB / 381.8 MB, free: 14.19 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.01028, allocations: 322.8 kB / 382.1 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001891/0.01047, allocations: 51.89 kB / 382.2 MB, free: 13.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002476/0.01072, allocations: 131.6 kB / 382.3 MB, free: 13.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003724/0.01109, allocations: 122.4 kB / 382.4 MB, free: 13.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.01109, allocations: 0 / 382.4 MB, free: 13.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004383/0.01153, allocations: 157.5 kB / 382.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.01155, allocations: 8 kB / 382.6 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.01155, allocations: 0 / 382.6 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.01157, allocations: 3.984 kB / 382.6 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.01172, allocations: 19.98 kB / 382.6 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.01173, allocations: 4 kB / 382.6 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.01189, allocations: 31.91 kB / 382.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.01191, allocations: 4 kB / 382.7 MB, free: 13.3 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.0001179/0.01203, allocations: 129.8 kB / 382.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.324e-05/0.01207, allocations: 11.95 kB / 382.8 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.986e-05/0.01211, allocations: 12.77 kB / 382.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.01211, allocations: 7.938 kB / 382.8 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.01212, allocations: 4 kB / 382.8 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.01212, allocations: 3.984 kB / 382.8 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002042/0.01233, allocations: 141.2 kB / 383 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.01233, allocations: 0 / 383 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.01245, allocations: 19.97 kB / 383 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.01246, allocations: 8 kB / 383 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.367e-06/0.01247, allocations: 0 / 383 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.01247, allocations: 0 / 383 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.01247, allocations: 0 / 383 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005012/0.01297, allocations: 243.3 kB / 383.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.859e-05/0.01299, allocations: 11.89 kB / 383.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.065e-05/0.01301, allocations: 4 kB / 383.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.01318, allocations: 23.97 kB / 383.3 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.453e-05/0.01323, allocations: 11.98 kB / 383.3 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/0.01324, allocations: 0 / 383.3 MB, free: 12.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.641e-05/0.01332, allocations: 111.2 kB / 383.4 MB, free: 12.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01332, allocations: 0 / 383.4 MB, free: 12.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002479/0.01357, allocations: 16 kB / 383.4 MB, free: 12.5 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 0.0001374/0.01371, allocations: 95.25 kB / 383.5 MB, free: 12.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000446/0.01415, allocations: 119.8 kB / 383.6 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.01416, allocations: 0 / 383.6 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001934/0.01435, allocations: 55.95 kB / 383.7 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.01469, allocations: 28.05 kB / 383.7 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006006/0.01529, allocations: 228.9 kB / 383.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.859e-05/0.01538, allocations: 85.44 kB / 384 MB, free: 11.85 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.615e-05/0.01544, allocations: 8.734 kB / 384 MB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.554e-05/0.0155, allocations: 24.48 kB / 384 MB, free: 11.81 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.0155, allocations: 0 / 384 MB, free: 11.81 MB / 362.7 MB Notification: Performance of Templates: time 0.004858/0.02035, allocations: 1.554 MB / 385.6 MB, free: 10.28 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.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.943610919057392]