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.001345/0.001345, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.00149/0.00149, allocations: 214.7 kB / 23.75 MB, free: 4.668 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.412/1.412, allocations: 230.6 MB / 257.5 MB, free: 7.984 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.2278/0.2278, allocations: 46.93 MB / 360.9 MB, free: 4.332 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.00203/0.00203, allocations: 71.88 kB / 0.4962 GB, free: 7.887 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.322, allocations: 66.03 MB / 0.5606 GB, free: 4.465 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003098/0.3251, allocations: 1.739 MB / 0.5623 GB, free: 2.715 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004172/0.3255, allocations: 151.6 kB / 0.5625 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.737e-05/0.3255, allocations: 7.938 kB / 0.5625 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.81e-05/0.3256, allocations: 7.875 kB / 0.5625 GB, free: 2.551 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.682e-05/0.3256, allocations: 11.86 kB / 0.5625 GB, free: 2.539 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003356/0.326, allocations: 99.8 kB / 0.5626 GB, free: 2.441 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001797/0.3262, allocations: 103.8 kB / 0.5627 GB, free: 2.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.3263, allocations: 23.41 kB / 0.5627 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.472e-05/0.3264, allocations: 55.83 kB / 0.5628 GB, free: 2.258 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.755e-05/0.3264, allocations: 43.78 kB / 0.5628 GB, free: 2.215 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.928e-05/0.3265, allocations: 8 kB / 0.5628 GB, free: 2.207 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.671e-05/0.3265, allocations: 8 kB / 0.5628 GB, free: 2.199 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.032e-05/0.3265, allocations: 19.92 kB / 0.5629 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.698e-05/0.3266, allocations: 43.73 kB / 0.5629 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001444/0.3267, allocations: 91.61 kB / 0.563 GB, free: 2.047 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3267, allocations: 0 / 0.563 GB, free: 2.047 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3267, allocations: 0 / 0.563 GB, free: 2.047 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.3267, allocations: 0 / 0.563 GB, free: 2.047 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.0006906/0.3274, allocations: 377.8 kB / 0.5633 GB, free: 1.645 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.3275, allocations: 8.031 kB / 0.5634 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.702e-05/0.3275, allocations: 42.73 kB / 0.5634 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.529e-05/0.3275, allocations: 12.84 kB / 0.5634 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002404/0.3278, allocations: 145.1 kB / 0.5635 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.3278, allocations: 4.375 kB / 0.5635 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.182e-05/0.3278, allocations: 8.375 kB / 0.5636 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003549/0.3282, allocations: 150.4 kB / 0.5637 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.3282, allocations: 3.938 kB / 0.5637 GB, free: 1.227 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.3282, allocations: 12 kB / 0.5637 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3282, allocations: 0 / 0.5637 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003581/0.3285, allocations: 111.8 kB / 0.5638 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007008/0.3292, allocations: 0.5116 MB / 0.5643 GB, free: 0.543 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004271/0.3297, allocations: 138.5 kB / 0.5645 GB, free: 408 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.3298, allocations: 56.78 kB / 0.5645 GB, free: 348 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.3299, allocations: 4 kB / 0.5645 GB, free: 344 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.3299, allocations: 34.55 kB / 0.5645 GB, free: 300 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.3299, allocations: 0 / 0.5645 GB, free: 300 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006263/0.3305, allocations: 193.5 kB / 0.5647 GB, free: 100 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.252e-05/0.3306, allocations: 102.8 kB / 0.5648 GB, free: 15.97 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.3308, allocations: 140.2 kB / 0.565 GB, free: 15.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.3308, allocations: 33.64 kB / 0.565 GB, free: 15.79 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.923e-05/0.3309, allocations: 116.1 kB / 0.5651 GB, free: 15.67 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/0.3309, allocations: 19.84 kB / 0.5651 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.615e-05/0.3309, allocations: 29.7 kB / 0.5652 GB, free: 15.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.3311, allocations: 322.8 kB / 0.5655 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001719/0.3313, allocations: 43.95 kB / 0.5655 GB, free: 15.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002016/0.3315, allocations: 88.25 kB / 0.5656 GB, free: 15.14 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003275/0.3318, allocations: 110.5 kB / 0.5657 GB, free: 15.03 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.3318, allocations: 4 kB / 0.5657 GB, free: 15.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004014/0.3322, allocations: 149.5 kB / 0.5658 GB, free: 14.87 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.3322, allocations: 8 kB / 0.5658 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3322, allocations: 0 / 0.5658 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.3322, allocations: 4.062 kB / 0.5658 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.3324, allocations: 31.91 kB / 0.5659 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.3324, allocations: 0 / 0.5659 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.3325, allocations: 35.8 kB / 0.5659 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.3325, allocations: 8 kB / 0.5659 GB, free: 14.79 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.0001119/0.3326, allocations: 117.8 kB / 0.566 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.408e-05/0.3327, allocations: 11.95 kB / 0.566 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.236e-05/0.3327, allocations: 16.7 kB / 0.5661 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.3327, allocations: 0 / 0.5661 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3327, allocations: 3.984 kB / 0.5661 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.3327, allocations: 3.938 kB / 0.5661 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000226/0.333, allocations: 180.7 kB / 0.5662 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.333, allocations: 0 / 0.5662 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/0.3331, allocations: 23.97 kB / 0.5663 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.3331, allocations: 3.938 kB / 0.5663 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.3331, allocations: 4 kB / 0.5663 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3331, allocations: 192 / 0.5663 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.3331, allocations: 0 / 0.5663 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004408/0.3335, allocations: 247.2 kB / 0.5665 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.416e-05/0.3336, allocations: 11.95 kB / 0.5665 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.898e-05/0.3336, allocations: 0 / 0.5665 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.3337, allocations: 23.97 kB / 0.5665 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.887e-05/0.3338, allocations: 11.92 kB / 0.5666 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/0.3338, allocations: 7.984 kB / 0.5666 GB, free: 14.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.639e-05/0.3339, allocations: 103.2 kB / 0.5667 GB, free: 13.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3339, allocations: 0 / 0.5667 GB, free: 13.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002391/0.3341, allocations: 23.94 kB / 0.5667 GB, free: 13.93 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.0007591/0.3349, allocations: 0.7713 MB / 0.5674 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004101/0.3353, allocations: 123.9 kB / 0.5676 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3353, allocations: 0 / 0.5676 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001879/0.3355, allocations: 51.95 kB / 0.5676 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.3358, allocations: 25.55 kB / 0.5676 GB, free: 12.94 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002329/0.3381, allocations: 1.661 MB / 0.5692 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.3385, allocations: 0.7007 MB / 0.5699 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.955e-05/0.3385, allocations: 8.672 kB / 0.5699 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.587e-05/0.3386, allocations: 35.36 kB / 0.57 GB, free: 10.42 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3386, allocations: 0 / 0.57 GB, free: 10.42 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02892/0.3675, allocations: 2.916 MB / 0.5728 GB, free: 7.641 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.19, allocations: 0 / 0.5728 GB, free: 7.641 MB / 414.1 MB " [Timeout remaining time 649] (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.082290173973888]