Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008592/0.0008592, allocations: 80.34 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008685/0.0008685, allocations: 156.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9329/0.9329, allocations: 177 MB / 204.1 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2507/0.2507, allocations: 34.23 MB / 294.8 MB, free: 0.7031 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 442.1 MB, free: 1.574 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.207e-05/2.395e-05, allocations: 6.219 kB / 442.2 MB, free: 1.566 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.193/0.193, allocations: 1.683 MB / 443.8 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004237/0.1934, allocations: 159.5 kB / 444 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.352e-05/0.1935, allocations: 2.438 kB / 444 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 3.401e-05/0.1935, allocations: 13.12 kB / 444 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.34e-05/0.1936, allocations: 11.81 kB / 444 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003019/0.1939, allocations: 103 kB / 444.1 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000136/0.194, allocations: 108.9 kB / 444.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.1941, allocations: 26.05 kB / 444.3 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.048e-05/0.1942, allocations: 64.59 kB / 444.3 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.525e-05/0.1943, allocations: 31.78 kB / 444.3 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.79e-05/0.1943, allocations: 9.188 kB / 444.4 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.154e-05/0.1943, allocations: 6.344 kB / 444.4 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.136e-05/0.1943, allocations: 18.47 kB / 444.4 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.994e-05/0.1944, allocations: 29.3 kB / 444.4 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001301/0.1945, allocations: 98.3 kB / 444.5 MB, free: 43.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.1945, allocations: 1.969 kB / 444.5 MB, free: 43.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1945, allocations: 0 / 444.5 MB, free: 43.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.1945, allocations: 0 / 444.5 MB, free: 43.2 MB / 410.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.0004834/0.195, allocations: 377.9 kB / 444.9 MB, free: 42.91 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.195, allocations: 7.969 kB / 444.9 MB, free: 42.91 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.733e-05/0.1951, allocations: 37.56 kB / 444.9 MB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.625e-05/0.1951, allocations: 11.89 kB / 444.9 MB, free: 42.87 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002188/0.1953, allocations: 151.4 kB / 445.1 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.1953, allocations: 3.594 kB / 445.1 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.312e-05/0.1953, allocations: 7.812 kB / 445.1 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003075/0.1956, allocations: 211.1 kB / 445.3 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/0.1957, allocations: 3.531 kB / 445.3 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.1957, allocations: 384 / 445.3 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.1957, allocations: 6.844 kB / 445.3 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000181/0.1959, allocations: 104.9 kB / 445.4 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004207/0.1963, allocations: 0.4983 MB / 445.9 MB, free: 42.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002271/0.1965, allocations: 134.3 kB / 446 MB, free: 42.15 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.062e-05/0.1966, allocations: 56.28 kB / 446.1 MB, free: 42.14 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.1966, allocations: 2.625 kB / 446.1 MB, free: 42.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.1966, allocations: 36.17 kB / 446.1 MB, free: 42.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=8): time 1.693e-06/0.1966, allocations: 0 / 446.1 MB, free: 42.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003982/0.197, allocations: 186.1 kB / 446.3 MB, free: 42.06 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.1971, allocations: 106.8 kB / 446.4 MB, free: 41.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.927e-05/0.1972, allocations: 138.9 kB / 446.6 MB, free: 41.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.1972, allocations: 29.64 kB / 446.6 MB, free: 41.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.596e-05/0.1972, allocations: 111.7 kB / 446.7 MB, free: 41.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.354e-05/0.1973, allocations: 22.16 kB / 446.7 MB, free: 41.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.472e-05/0.1973, allocations: 28.19 kB / 446.7 MB, free: 41.67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.192e-05/0.1973, allocations: 327.3 kB / 447.1 MB, free: 41.36 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.935e-05/0.1974, allocations: 50.72 kB / 447.1 MB, free: 41.35 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.1975, allocations: 134 kB / 447.2 MB, free: 41.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001717/0.1977, allocations: 120.3 kB / 447.4 MB, free: 41.22 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1977, allocations: 0 / 447.4 MB, free: 41.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002147/0.1979, allocations: 149 kB / 447.5 MB, free: 41.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.1979, allocations: 5.406 kB / 447.5 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.198, allocations: 0 / 447.5 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.198, allocations: 4.062 kB / 447.5 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.1981, allocations: 33.95 kB / 447.5 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.1981, allocations: 2.969 kB / 447.5 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.764e-05/0.1982, allocations: 29.44 kB / 447.6 MB, free: 41.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.1982, allocations: 6.25 kB / 447.6 MB, free: 41.17 MB / 410.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.506e-05/0.1982, allocations: 130.2 kB / 447.7 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.745e-05/0.1982, allocations: 6.797 kB / 447.7 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.488e-05/0.1983, allocations: 11.25 kB / 447.7 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1983, allocations: 4.844 kB / 447.7 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.1983, allocations: 2.906 kB / 447.7 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.1983, allocations: 5.484 kB / 447.7 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.1984, allocations: 165.5 kB / 447.9 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.1984, allocations: 2.906 kB / 447.9 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.036e-05/0.1985, allocations: 18.2 kB / 447.9 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.1985, allocations: 2.875 kB / 447.9 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.253e-06/0.1985, allocations: 0 / 447.9 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.1985, allocations: 0 / 447.9 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1985, allocations: 5.5 kB / 447.9 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002179/0.1987, allocations: 243.1 kB / 448.2 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.129e-05/0.1987, allocations: 10.94 kB / 448.2 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.1987, allocations: 6.719 kB / 448.2 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.177e-05/0.1988, allocations: 23.84 kB / 448.2 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.831e-05/0.1988, allocations: 13.19 kB / 448.2 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-06/0.1989, allocations: 5.5 kB / 448.2 MB, free: 40.72 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.896e-05/0.1989, allocations: 109.8 kB / 448.3 MB, free: 40.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1989, allocations: 0 / 448.3 MB, free: 40.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001616/0.1991, allocations: 21.16 kB / 448.4 MB, free: 40.64 MB / 410.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.0003509/0.1994, allocations: 0.774 MB / 449.1 MB, free: 39.96 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002393/0.1996, allocations: 108.9 kB / 449.2 MB, free: 39.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1996, allocations: 0 / 449.2 MB, free: 39.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.829e-05/0.1997, allocations: 59.81 kB / 449.3 MB, free: 39.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003238/0.2001, allocations: 25.83 kB / 449.3 MB, free: 39.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.2012, allocations: 1.659 MB / 451 MB, free: 38.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.468e-05/0.2013, allocations: 85.83 kB / 451.1 MB, free: 38.53 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.915e-05/0.2013, allocations: 15.16 kB / 451.1 MB, free: 38.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.721e-05/0.2014, allocations: 33.59 kB / 451.1 MB, free: 38.51 MB / 410.7 MB Notification: Performance of SimCode: time 1.022e-06/0.2014, allocations: 0 / 451.1 MB, free: 38.51 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01757/0.219, allocations: 3.545 MB / 454.7 MB, free: 37.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.29/7.509, allocations: 7.266 kB / 454.7 MB, free: 37.47 MB / 410.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019988 ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv","/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_trunk_ModelicaTest.Blocks.ZeroThresholds.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv. Warning: Get data of variable Time from file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv failed! Error: Could not read variable greaterThreshold.y in file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv. Warning: Get data of variable greaterThreshold.y from file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv failed! Error: Could not read variable greaterEqualThreshold.y in file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv. Warning: Get data of variable greaterEqualThreshold.y from file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv failed! Error: Could not read variable lessThreshold.y in file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv. Warning: Get data of variable lessThreshold.y from file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv failed! Error: Could not read variable lessEqualThreshold.y in file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv. Warning: Get data of variable lessEqualThreshold.y from file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.663629041984677]