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.001244/0.001244, allocations: 123.4 kB / 17.79 MB, free: 5.246 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.001344/0.001344, allocations: 208.3 kB / 20.75 MB, free: 2.297 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.567/1.567, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.2582/0.2582, allocations: 46.92 MB / 357.1 MB, free: 10.3 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.001865/0.001865, allocations: 71.88 kB / 0.4909 GB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1493, allocations: 65.99 MB / 0.5554 GB, free: 5.828 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003077/0.1524, allocations: 1.722 MB / 0.557 GB, free: 4.094 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00043/0.1528, allocations: 155.6 kB / 0.5572 GB, free: 3.941 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.375e-05/0.1529, allocations: 7.938 kB / 0.5572 GB, free: 3.934 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.968e-05/0.1529, allocations: 7.875 kB / 0.5572 GB, free: 3.926 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.956e-05/0.153, allocations: 11.88 kB / 0.5572 GB, free: 3.914 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003515/0.1533, allocations: 103.8 kB / 0.5573 GB, free: 3.812 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001748/0.1535, allocations: 111.7 kB / 0.5574 GB, free: 3.703 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.1536, allocations: 25.39 kB / 0.5575 GB, free: 3.676 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.999e-05/0.1537, allocations: 39.86 kB / 0.5575 GB, free: 3.637 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.405e-05/0.1538, allocations: 43.75 kB / 0.5575 GB, free: 3.594 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.524e-05/0.1538, allocations: 8 kB / 0.5575 GB, free: 3.586 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.697e-05/0.1538, allocations: 8 kB / 0.5575 GB, free: 3.578 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.832e-05/0.1538, allocations: 23.92 kB / 0.5576 GB, free: 3.555 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.374e-05/0.1539, allocations: 43.73 kB / 0.5576 GB, free: 3.512 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001539/0.154, allocations: 95.62 kB / 0.5577 GB, free: 3.418 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1541, allocations: 0 / 0.5577 GB, free: 3.418 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1541, allocations: 3.938 kB / 0.5577 GB, free: 3.414 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.261e-06/0.1541, allocations: 0 / 0.5577 GB, free: 3.414 MB / 414.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.0007634/0.1548, allocations: 442.9 kB / 0.5581 GB, free: 2.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.1549, allocations: 8.031 kB / 0.5581 GB, free: 2.922 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.456e-05/0.1549, allocations: 42.75 kB / 0.5582 GB, free: 2.871 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.378e-05/0.155, allocations: 16.84 kB / 0.5582 GB, free: 2.855 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003112/0.1553, allocations: 204.2 kB / 0.5584 GB, free: 2.617 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.1553, allocations: 4.312 kB / 0.5584 GB, free: 2.613 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.1553, allocations: 12.38 kB / 0.5584 GB, free: 2.602 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003841/0.1557, allocations: 144.5 kB / 0.5585 GB, free: 2.441 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.1557, allocations: 7.938 kB / 0.5585 GB, free: 2.434 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.934e-05/0.1557, allocations: 4 kB / 0.5586 GB, free: 2.43 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1557, allocations: 0 / 0.5586 GB, free: 2.43 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003891/0.1561, allocations: 115.8 kB / 0.5587 GB, free: 2.316 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007877/0.1569, allocations: 0.5399 MB / 0.5592 GB, free: 1.719 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004378/0.1573, allocations: 138.5 kB / 0.5593 GB, free: 1.574 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001938/0.1575, allocations: 52.84 kB / 0.5594 GB, free: 1.52 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.1576, allocations: 3.984 kB / 0.5594 GB, free: 1.516 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.1576, allocations: 34.56 kB / 0.5594 GB, free: 1.473 MB / 414.1 MB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.1576, allocations: 7.938 kB / 0.5594 GB, free: 1.465 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006641/0.1582, allocations: 181.5 kB / 0.5596 GB, free: 1.281 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.642e-05/0.1583, allocations: 106.8 kB / 0.5597 GB, free: 1.152 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002125/0.1585, allocations: 143.3 kB / 0.5598 GB, free: 1 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.1586, allocations: 29.64 kB / 0.5599 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.238e-05/0.1586, allocations: 108.2 kB / 0.56 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.835e-05/0.1587, allocations: 27.86 kB / 0.56 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.55e-05/0.1587, allocations: 25.7 kB / 0.56 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1589, allocations: 326.8 kB / 0.5603 GB, free: 480 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001848/0.1591, allocations: 51.95 kB / 0.5604 GB, free: 428 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002334/0.1593, allocations: 92.11 kB / 0.5605 GB, free: 320 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003513/0.1596, allocations: 106.5 kB / 0.5606 GB, free: 204 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.1596, allocations: 0 / 0.5606 GB, free: 204 kB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004424/0.1601, allocations: 157.5 kB / 0.5607 GB, free: 40 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.1601, allocations: 4 kB / 0.5607 GB, free: 36 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.1601, allocations: 0 / 0.5607 GB, free: 36 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.1601, allocations: 4 kB / 0.5607 GB, free: 32 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.1603, allocations: 31.91 kB / 0.5608 GB, free: 0 / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.1603, allocations: 0 / 0.5608 GB, free: 0 / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001681/0.1605, allocations: 39.86 kB / 0.5608 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.231e-05/0.1605, allocations: 4 kB / 0.5608 GB, free: 15.96 MB / 430.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.0001219/0.1606, allocations: 124 kB / 0.5609 GB, free: 15.83 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.881e-05/0.1606, allocations: 11.95 kB / 0.5609 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.481e-05/0.1607, allocations: 8.719 kB / 0.5609 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.1607, allocations: 0 / 0.5609 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.1607, allocations: 11.92 kB / 0.5609 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1607, allocations: 0 / 0.5609 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000257/0.161, allocations: 205.6 kB / 0.5611 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.161, allocations: 4 kB / 0.5611 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/0.1611, allocations: 27.91 kB / 0.5612 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.1611, allocations: 0 / 0.5612 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.1611, allocations: 0 / 0.5612 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1611, allocations: 0 / 0.5612 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.1611, allocations: 7.938 kB / 0.5612 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004771/0.1616, allocations: 239.4 kB / 0.5614 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.872e-05/0.1616, allocations: 85.06 kB / 0.5615 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.067e-05/0.1616, allocations: 0 / 0.5615 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.1618, allocations: 27.95 kB / 0.5615 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.889e-05/0.1619, allocations: 11.94 kB / 0.5615 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.1619, allocations: 4 kB / 0.5615 GB, free: 15.11 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.399e-05/0.1619, allocations: 112 kB / 0.5616 GB, free: 15 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1619, allocations: 0 / 0.5616 GB, free: 15 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002452/0.1622, allocations: 23.88 kB / 0.5617 GB, free: 14.98 MB / 430.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.0008306/0.163, allocations: 0.7675 MB / 0.5624 GB, free: 14.18 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004452/0.1635, allocations: 115.9 kB / 0.5625 GB, free: 14.07 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1635, allocations: 320 / 0.5625 GB, free: 14.07 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002056/0.1637, allocations: 63.89 kB / 0.5626 GB, free: 14.01 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000348/0.164, allocations: 23.86 kB / 0.5626 GB, free: 13.98 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003022/0.167, allocations: 1.663 MB / 0.5642 GB, free: 12.23 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004417/0.1675, allocations: 0.6963 MB / 0.5649 GB, free: 11.51 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.645e-05/0.1675, allocations: 8.672 kB / 0.5649 GB, free: 11.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.84e-05/0.1676, allocations: 31.42 kB / 0.5649 GB, free: 11.47 MB / 430.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1676, allocations: 0 / 0.5649 GB, free: 11.47 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02625/0.1939, allocations: 2.769 MB / 0.5676 GB, free: 8.773 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.961/8.155, allocations: 14.91 kB / 0.5677 GB, free: 8.762 MB / 430.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_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.csv","/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] "Error: Could not read variable Time in file ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.csv. Warning: Get data of variable Time from file ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.csv failed! Error: Could not read variable greaterThreshold.y in file ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.csv. Warning: Get data of variable greaterThreshold.y from file ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.csv failed! Error: Could not read variable greaterEqualThreshold.y in file ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.csv. Warning: Get data of variable greaterEqualThreshold.y from file ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.csv failed! Error: Could not read variable lessThreshold.y in file ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.csv. Warning: Get data of variable lessThreshold.y from file ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.csv failed! Error: Could not read variable lessEqualThreshold.y in file ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.csv. Warning: Get data of variable lessEqualThreshold.y from file ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.544702350001899]