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.001703/0.001703, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001941/0.001941, allocations: 214.4 kB / 23.74 MB, free: 4.656 MB / 14.72 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.584/1.584, allocations: 230.6 MB / 257.5 MB, free: 8 MB / 206.1 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.2328/0.2328, allocations: 46.94 MB / 360.9 MB, free: 4.219 MB / 286.1 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 0.002208/0.002208, allocations: 63.91 kB / 0.4966 GB, free: 7.371 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4256/0.4278, allocations: 66.03 MB / 0.5611 GB, free: 4.395 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.004027/0.4318, allocations: 1.727 MB / 0.5628 GB, free: 2.656 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005853/0.4324, allocations: 155.5 kB / 0.563 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.4325, allocations: 7.938 kB / 0.563 GB, free: 2.496 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.089e-05/0.4325, allocations: 11.86 kB / 0.563 GB, free: 2.484 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.998e-05/0.4326, allocations: 15.86 kB / 0.563 GB, free: 2.469 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004767/0.4331, allocations: 95.86 kB / 0.5631 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002782/0.4334, allocations: 111.7 kB / 0.5632 GB, free: 2.266 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001861/0.4336, allocations: 29.56 kB / 0.5632 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001098/0.4337, allocations: 43.86 kB / 0.5633 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.61e-05/0.4338, allocations: 39.78 kB / 0.5633 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.222e-05/0.4338, allocations: 8 kB / 0.5633 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.102e-05/0.4338, allocations: 8 kB / 0.5633 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.039e-05/0.4339, allocations: 27.91 kB / 0.5633 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.669e-05/0.4339, allocations: 39.8 kB / 0.5634 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002107/0.4341, allocations: 97.95 kB / 0.5635 GB, free: 1.977 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.4342, allocations: 4 kB / 0.5635 GB, free: 1.973 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4342, allocations: 0 / 0.5635 GB, free: 1.973 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.4342, allocations: 0 / 0.5635 GB, free: 1.973 MB / 398.1 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.000804/0.435, allocations: 365.8 kB / 0.5638 GB, free: 1.582 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.435, allocations: 15.97 kB / 0.5638 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.927e-05/0.4351, allocations: 16.84 kB / 0.5638 GB, free: 1.551 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000301/0.4354, allocations: 144.9 kB / 0.564 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.4354, allocations: 4.375 kB / 0.564 GB, free: 1.383 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.021e-05/0.4354, allocations: 8.375 kB / 0.564 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003877/0.4358, allocations: 154.4 kB / 0.5641 GB, free: 1.203 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.4358, allocations: 192 / 0.5641 GB, free: 1.203 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.084e-05/0.4358, allocations: 7.938 kB / 0.5642 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.4358, allocations: 4 kB / 0.5642 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003828/0.4362, allocations: 111.8 kB / 0.5643 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007833/0.437, allocations: 0.5078 MB / 0.5648 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000436/0.4374, allocations: 138.4 kB / 0.5649 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.4376, allocations: 52.84 kB / 0.5649 GB, free: 332 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.633e-05/0.4376, allocations: 4.062 kB / 0.5649 GB, free: 328 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.034e-05/0.4377, allocations: 42.56 kB / 0.565 GB, free: 276 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.4377, allocations: 0 / 0.565 GB, free: 276 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006929/0.4384, allocations: 185.4 kB / 0.5652 GB, free: 84 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/0.4385, allocations: 106.8 kB / 0.5653 GB, free: 15.95 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.4387, allocations: 136.2 kB / 0.5654 GB, free: 15.81 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/0.4387, allocations: 29.7 kB / 0.5654 GB, free: 15.77 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.4388, allocations: 104 kB / 0.5655 GB, free: 15.67 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.077e-05/0.4388, allocations: 27.92 kB / 0.5656 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.393e-05/0.4389, allocations: 33.64 kB / 0.5656 GB, free: 15.6 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.4391, allocations: 318.8 kB / 0.5659 GB, free: 15.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000187/0.4393, allocations: 55.94 kB / 0.5659 GB, free: 15.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.4395, allocations: 84.25 kB / 0.566 GB, free: 15.13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000348/0.4398, allocations: 122.7 kB / 0.5661 GB, free: 15 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.4398, allocations: 0 / 0.5661 GB, free: 15 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004162/0.4402, allocations: 157.5 kB / 0.5663 GB, free: 14.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/0.4403, allocations: 4 kB / 0.5663 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.4403, allocations: 0 / 0.5663 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.4403, allocations: 4 kB / 0.5663 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.4404, allocations: 23.97 kB / 0.5663 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.4405, allocations: 7.938 kB / 0.5663 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.4406, allocations: 39.86 kB / 0.5664 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.4406, allocations: 4 kB / 0.5664 GB, free: 14.76 MB / 414.1 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.00012/0.4407, allocations: 117.8 kB / 0.5665 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.548e-05/0.4408, allocations: 7.953 kB / 0.5665 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.435e-05/0.4408, allocations: 12.7 kB / 0.5665 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.4408, allocations: 4 kB / 0.5665 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4408, allocations: 0 / 0.5665 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.681e-05/0.4408, allocations: 3.938 kB / 0.5665 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002377/0.4411, allocations: 176.7 kB / 0.5667 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.4411, allocations: 4 kB / 0.5667 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001356/0.4412, allocations: 19.97 kB / 0.5667 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.4412, allocations: 0 / 0.5667 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.4412, allocations: 8 kB / 0.5667 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.4412, allocations: 0 / 0.5667 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.165e-06/0.4412, allocations: 4 kB / 0.5667 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004587/0.4417, allocations: 247.2 kB / 0.5669 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.577e-05/0.4417, allocations: 7.953 kB / 0.567 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.255e-05/0.4417, allocations: 4 kB / 0.567 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.4419, allocations: 27.95 kB / 0.567 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.279e-05/0.4419, allocations: 7.984 kB / 0.567 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.442, allocations: 7.938 kB / 0.567 GB, free: 14.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.885e-05/0.442, allocations: 107.2 kB / 0.5671 GB, free: 13.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.442, allocations: 0 / 0.5671 GB, free: 13.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002533/0.4423, allocations: 24.12 kB / 0.5671 GB, free: 13.91 MB / 414.1 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.0001276/0.4424, allocations: 99.12 kB / 0.5672 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004348/0.4428, allocations: 116 kB / 0.5673 GB, free: 13.69 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4429, allocations: 4 kB / 0.5673 GB, free: 13.69 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001949/0.443, allocations: 55.89 kB / 0.5674 GB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/0.4434, allocations: 27.02 kB / 0.5674 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005926/0.4439, allocations: 222 kB / 0.5676 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.4443, allocations: 0.6968 MB / 0.5683 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.269e-05/0.4444, allocations: 9.141 kB / 0.5683 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.067e-05/0.4444, allocations: 11.44 kB / 0.5683 GB, free: 12.62 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4444, allocations: 0 / 0.5683 GB, free: 12.62 MB / 414.1 MB Notification: Performance of Templates: time 0.004822/0.4492, allocations: 1.486 MB / 0.5698 GB, free: 11.15 MB / 414.1 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] "" Variables in the reference:time,ramp.y,greaterThreshold.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y Variables in the result:gain.k,greaterEqualThreshold.threshold,greaterEqualThreshold.y,greaterThreshold.threshold,greaterThreshold.y,lessEqualThreshold.threshold,lessEqualThreshold.y,lessThreshold.threshold,lessThreshold.y,limiterMaxZero.homotopyType,limiterMaxZero.strict,limiterMaxZero.uMax,limiterMaxZero.uMin,limiterMinZero.homotopyType,limiterMinZero.strict,limiterMinZero.uMax,limiterMinZero.uMin,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,time [Calling sys.exit(0), Time elapsed: 5.650972253177315]