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.001374/0.001374, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001476/0.001476, allocations: 215.3 kB / 23.73 MB, free: 4.156 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.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2239/0.2239, allocations: 46.96 MB / 360.9 MB, free: 3.988 MB / 286.1 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: "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002858/0.002858, allocations: 67.89 kB / 0.4961 GB, free: 7.68 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3582, allocations: 66.03 MB / 0.5606 GB, free: 4.191 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003022/0.3612, allocations: 1.702 MB / 0.5622 GB, free: 2.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003999/0.3616, allocations: 151.6 kB / 0.5624 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.231e-05/0.3617, allocations: 7.938 kB / 0.5624 GB, free: 2.324 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.48e-05/0.3618, allocations: 7.875 kB / 0.5624 GB, free: 2.316 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.273e-05/0.3618, allocations: 11.86 kB / 0.5624 GB, free: 2.305 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003408/0.3622, allocations: 111.5 kB / 0.5625 GB, free: 2.199 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001668/0.3623, allocations: 99.77 kB / 0.5626 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.3624, allocations: 31.39 kB / 0.5626 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.716e-05/0.3625, allocations: 43.84 kB / 0.5627 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.073e-05/0.3626, allocations: 39.78 kB / 0.5627 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.912e-05/0.3626, allocations: 8 kB / 0.5627 GB, free: 1.977 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.939e-05/0.3626, allocations: 8 kB / 0.5627 GB, free: 1.969 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.903e-05/0.3627, allocations: 23.91 kB / 0.5628 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.847e-05/0.3627, allocations: 35.8 kB / 0.5628 GB, free: 1.91 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001461/0.3629, allocations: 87.64 kB / 0.5629 GB, free: 1.824 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3629, allocations: 0 / 0.5629 GB, free: 1.824 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.3629, allocations: 3.984 kB / 0.5629 GB, free: 1.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.3629, allocations: 0 / 0.5629 GB, free: 1.82 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.0006815/0.3635, allocations: 377.8 kB / 0.5632 GB, free: 1.418 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.3636, allocations: 8.031 kB / 0.5633 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.377e-05/0.3636, allocations: 50.61 kB / 0.5633 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.681e-05/0.3637, allocations: 12.84 kB / 0.5633 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002419/0.3639, allocations: 142.4 kB / 0.5634 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.3639, allocations: 4.375 kB / 0.5635 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.3639, allocations: 12.38 kB / 0.5635 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004278/0.3644, allocations: 203.7 kB / 0.5637 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.3644, allocations: 3.938 kB / 0.5637 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.98e-05/0.3644, allocations: 4 kB / 0.5637 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.3644, allocations: 4 kB / 0.5637 GB, free: 0.918 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003816/0.3648, allocations: 111.8 kB / 0.5638 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007197/0.3655, allocations: 0.496 MB / 0.5643 GB, free: 268 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004394/0.366, allocations: 134.5 kB / 0.5644 GB, free: 124 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001899/0.3662, allocations: 52.84 kB / 0.5644 GB, free: 68 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.3662, allocations: 0 / 0.5644 GB, free: 68 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.861e-05/0.3662, allocations: 34.56 kB / 0.5645 GB, free: 24 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.3662, allocations: 0 / 0.5645 GB, free: 24 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006973/0.3669, allocations: 197.5 kB / 0.5647 GB, free: 15.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.881e-05/0.367, allocations: 102.8 kB / 0.5648 GB, free: 15.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.3671, allocations: 140.3 kB / 0.5649 GB, free: 15.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.043e-05/0.3672, allocations: 25.7 kB / 0.5649 GB, free: 15.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.559e-05/0.3672, allocations: 116.1 kB / 0.565 GB, free: 15.4 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.296e-05/0.3673, allocations: 19.84 kB / 0.565 GB, free: 15.38 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.388e-05/0.3673, allocations: 29.72 kB / 0.5651 GB, free: 15.35 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.3675, allocations: 322.8 kB / 0.5654 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001919/0.3677, allocations: 47.95 kB / 0.5654 GB, free: 14.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000273/0.3679, allocations: 139.6 kB / 0.5656 GB, free: 14.81 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003623/0.3683, allocations: 110.5 kB / 0.5657 GB, free: 14.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3683, allocations: 0 / 0.5657 GB, free: 14.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004506/0.3688, allocations: 161.8 kB / 0.5658 GB, free: 14.53 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.3688, allocations: 4 kB / 0.5658 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.3688, allocations: 0 / 0.5658 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.3688, allocations: 4 kB / 0.5658 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.369, allocations: 27.91 kB / 0.5659 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.369, allocations: 80 / 0.5659 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.3691, allocations: 35.8 kB / 0.5659 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.3691, allocations: 7.984 kB / 0.5659 GB, free: 14.45 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.0001212/0.3693, allocations: 130 kB / 0.566 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.536e-05/0.3693, allocations: 11.89 kB / 0.566 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.489e-05/0.3693, allocations: 16.69 kB / 0.5661 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3693, allocations: 4 kB / 0.5661 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.3693, allocations: 0 / 0.5661 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.3693, allocations: 3.938 kB / 0.5661 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002325/0.3696, allocations: 156.7 kB / 0.5662 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.3696, allocations: 7.984 kB / 0.5662 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000119/0.3697, allocations: 19.92 kB / 0.5662 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3697, allocations: 4 kB / 0.5662 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.3697, allocations: 15.98 kB / 0.5663 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3697, allocations: 0 / 0.5663 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3697, allocations: 0 / 0.5663 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004723/0.3702, allocations: 239.3 kB / 0.5665 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.148e-05/0.3702, allocations: 11.88 kB / 0.5665 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.275e-05/0.3702, allocations: 8 kB / 0.5665 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.3704, allocations: 23.97 kB / 0.5665 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.152e-05/0.3705, allocations: 11.92 kB / 0.5665 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.3705, allocations: 8 kB / 0.5665 GB, free: 13.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.064e-05/0.3705, allocations: 97.16 kB / 0.5666 GB, free: 13.63 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3705, allocations: 0 / 0.5666 GB, free: 13.63 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002486/0.3708, allocations: 20 kB / 0.5667 GB, free: 13.61 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.0008204/0.3716, allocations: 0.7631 MB / 0.5674 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000465/0.3721, allocations: 115.8 kB / 0.5675 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3721, allocations: 128 / 0.5675 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001965/0.3723, allocations: 59.95 kB / 0.5676 GB, free: 12.65 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003158/0.3726, allocations: 19.92 kB / 0.5676 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002444/0.375, allocations: 1.665 MB / 0.5692 GB, free: 10.87 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.402e-05/0.3751, allocations: 81.33 kB / 0.5693 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.47e-05/0.3752, allocations: 16.69 kB / 0.5693 GB, free: 10.76 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.255e-05/0.3753, allocations: 35.36 kB / 0.5693 GB, free: 10.72 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3753, allocations: 0 / 0.5693 GB, free: 10.72 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02918/0.4044, allocations: 3.406 MB / 0.5727 GB, free: 7.461 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.55, allocations: 11.91 kB / 0.5727 GB, free: 7.449 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_ZeroThresholds_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ZeroThresholds/ZeroThresholds.csv","/var/lib/jenkins1/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,gain.u,gain.y,greaterEqualThreshold.threshold,greaterEqualThreshold.u,greaterEqualThreshold.y,greaterThreshold.threshold,greaterThreshold.u,greaterThreshold.y,lessEqualThreshold.threshold,lessEqualThreshold.u,lessEqualThreshold.y,lessThreshold.threshold,lessThreshold.u,lessThreshold.y,limiterMaxZero.homotopyType,limiterMaxZero.strict,limiterMaxZero.u,limiterMaxZero.uMax,limiterMaxZero.uMin,limiterMaxZero.y,limiterMinZero.homotopyType,limiterMinZero.strict,limiterMinZero.u,limiterMinZero.uMax,limiterMinZero.uMin,limiterMinZero.y,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,time [Calling sys.exit(0), Time elapsed: 14.492625911720097]