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.001985/0.001985, allocations: 115.8 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.00189/0.00189, allocations: 213.3 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.559/1.559, allocations: 230.6 MB / 257.5 MB, free: 7.992 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.2426/0.2426, allocations: 46.92 MB / 360.8 MB, free: 4.258 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: "" <> 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.002003/0.002003, allocations: 67.89 kB / 0.4962 GB, free: 7.891 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3912/0.3932, allocations: 66.04 MB / 0.5606 GB, free: 4.453 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003197/0.3964, allocations: 1.73 MB / 0.5623 GB, free: 2.715 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004551/0.3968, allocations: 159.6 kB / 0.5625 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.595e-05/0.3969, allocations: 7.938 kB / 0.5625 GB, free: 2.551 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.478e-05/0.397, allocations: 7.875 kB / 0.5625 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.495e-05/0.397, allocations: 7.875 kB / 0.5625 GB, free: 2.535 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003757/0.3974, allocations: 103.8 kB / 0.5626 GB, free: 2.434 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002033/0.3976, allocations: 99.77 kB / 0.5627 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.3978, allocations: 35.41 kB / 0.5627 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.416e-05/0.3978, allocations: 43.84 kB / 0.5628 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.51e-05/0.3979, allocations: 43.77 kB / 0.5628 GB, free: 2.211 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.711e-05/0.3979, allocations: 8 kB / 0.5628 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.865e-05/0.398, allocations: 8 kB / 0.5628 GB, free: 2.195 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.614e-05/0.398, allocations: 23.92 kB / 0.5629 GB, free: 2.172 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.073e-05/0.3981, allocations: 39.8 kB / 0.5629 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001695/0.3982, allocations: 87.58 kB / 0.563 GB, free: 2.047 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3982, allocations: 0 / 0.563 GB, free: 2.047 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3982, allocations: 3.938 kB / 0.563 GB, free: 2.043 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.3982, allocations: 4 kB / 0.563 GB, free: 2.039 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.0007266/0.399, allocations: 377.8 kB / 0.5633 GB, free: 1.637 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.399, allocations: 8.031 kB / 0.5634 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.706e-05/0.3991, allocations: 46.67 kB / 0.5634 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.761e-05/0.3991, allocations: 12.84 kB / 0.5634 GB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002849/0.3994, allocations: 142.4 kB / 0.5635 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.3994, allocations: 8.312 kB / 0.5636 GB, free: 1.391 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.569e-05/0.3994, allocations: 8.375 kB / 0.5636 GB, free: 1.383 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003588/0.3998, allocations: 146.5 kB / 0.5637 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.3998, allocations: 11.94 kB / 0.5637 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.3998, allocations: 0 / 0.5637 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.3998, allocations: 0 / 0.5637 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003777/0.4002, allocations: 115.8 kB / 0.5638 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007051/0.4009, allocations: 0.5155 MB / 0.5643 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004109/0.4013, allocations: 134.5 kB / 0.5645 GB, free: 396 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/0.4015, allocations: 56.81 kB / 0.5645 GB, free: 336 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.798e-05/0.4015, allocations: 0 / 0.5645 GB, free: 336 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.4015, allocations: 30.56 kB / 0.5645 GB, free: 296 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 2.765e-06/0.4015, allocations: 7.922 kB / 0.5645 GB, free: 288 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.000633/0.4022, allocations: 189.5 kB / 0.5647 GB, free: 92 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.4023, allocations: 106.9 kB / 0.5648 GB, free: 15.96 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.4024, allocations: 134.1 kB / 0.565 GB, free: 15.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.358e-05/0.4025, allocations: 33.7 kB / 0.565 GB, free: 15.78 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.132e-05/0.4025, allocations: 112.1 kB / 0.5651 GB, free: 15.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.248e-05/0.4026, allocations: 27.78 kB / 0.5651 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.106e-05/0.4026, allocations: 25.72 kB / 0.5651 GB, free: 15.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.4028, allocations: 322.8 kB / 0.5655 GB, free: 15.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.4029, allocations: 47.95 kB / 0.5655 GB, free: 15.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002068/0.4031, allocations: 88.17 kB / 0.5656 GB, free: 15.13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003274/0.4035, allocations: 114.5 kB / 0.5657 GB, free: 15.01 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.4035, allocations: 0 / 0.5657 GB, free: 15.01 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004094/0.4039, allocations: 145.5 kB / 0.5658 GB, free: 14.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/0.4039, allocations: 8.062 kB / 0.5658 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.4039, allocations: 4 kB / 0.5658 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.4039, allocations: 0 / 0.5658 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.4041, allocations: 35.91 kB / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.4041, allocations: 0 / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001435/0.4042, allocations: 35.8 kB / 0.5659 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.4043, allocations: 4 kB / 0.5659 GB, free: 14.78 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.0001156/0.4044, allocations: 122 kB / 0.566 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.421e-05/0.4044, allocations: 11.89 kB / 0.566 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.692e-05/0.4045, allocations: 16.7 kB / 0.5661 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.4045, allocations: 0 / 0.5661 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.4045, allocations: 0 / 0.5661 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.4045, allocations: 3.938 kB / 0.5661 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002396/0.4047, allocations: 180.7 kB / 0.5662 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.4047, allocations: 4 kB / 0.5662 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.4048, allocations: 27.91 kB / 0.5663 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.4048, allocations: 4 kB / 0.5663 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.4048, allocations: 0 / 0.5663 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.4048, allocations: 0 / 0.5663 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.4048, allocations: 0 / 0.5663 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004492/0.4053, allocations: 243.3 kB / 0.5665 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.3e-05/0.4053, allocations: 11.95 kB / 0.5665 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.173e-05/0.4053, allocations: 0 / 0.5665 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001639/0.4055, allocations: 23.97 kB / 0.5665 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.071e-05/0.4056, allocations: 11.92 kB / 0.5665 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.819e-06/0.4056, allocations: 4 kB / 0.5666 GB, free: 14.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.101e-05/0.4056, allocations: 109.5 kB / 0.5667 GB, free: 13.95 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4056, allocations: 0 / 0.5667 GB, free: 13.95 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002474/0.4059, allocations: 27.81 kB / 0.5667 GB, free: 13.92 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.0007717/0.4067, allocations: 0.7597 MB / 0.5674 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004201/0.4071, allocations: 119.9 kB / 0.5675 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4071, allocations: 0 / 0.5675 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001883/0.4073, allocations: 67.88 kB / 0.5676 GB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003286/0.4076, allocations: 27.98 kB / 0.5676 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002472/0.4101, allocations: 1.653 MB / 0.5692 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004137/0.4105, allocations: 0.7046 MB / 0.5699 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.61e-05/0.4105, allocations: 4.766 kB / 0.5699 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.271e-05/0.4106, allocations: 35.36 kB / 0.57 GB, free: 10.41 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4106, allocations: 0 / 0.57 GB, free: 10.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02922/0.4399, allocations: 2.912 MB / 0.5728 GB, free: 7.637 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.5, allocations: 0 / 0.5728 GB, free: 7.637 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 & 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: 14.740145826006483]