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.00138/0.00138, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 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.001828/0.001828, allocations: 204.5 kB / 23.72 MB, free: 4.391 MB / 14.72 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 1.484/1.484, allocations: 230.5 MB / 257.4 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] 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.2458/0.2458, allocations: 46.94 MB / 360.8 MB, free: 3.93 MB / 286.1 MB " [Timeout remaining time 179] 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 0.00231/0.00231, allocations: 79.88 kB / 0.4961 GB, free: 7.562 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3847/0.387, allocations: 66.08 MB / 0.5607 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003511/0.3905, allocations: 1.702 MB / 0.5623 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004683/0.391, allocations: 151.5 kB / 0.5625 GB, free: 2.164 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.327e-05/0.3911, allocations: 4 kB / 0.5625 GB, free: 2.16 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.295e-05/0.3911, allocations: 11.86 kB / 0.5625 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.708e-05/0.3912, allocations: 11.81 kB / 0.5625 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.3916, allocations: 103.8 kB / 0.5626 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001961/0.3918, allocations: 111.8 kB / 0.5627 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.392, allocations: 23.41 kB / 0.5627 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.214e-05/0.3921, allocations: 47.84 kB / 0.5628 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.526e-05/0.3921, allocations: 35.78 kB / 0.5628 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.276e-05/0.3921, allocations: 8 kB / 0.5628 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.17e-05/0.3922, allocations: 8 kB / 0.5628 GB, free: 1.801 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.969e-05/0.3922, allocations: 23.92 kB / 0.5629 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.434e-05/0.3923, allocations: 35.8 kB / 0.5629 GB, free: 1.742 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001643/0.3924, allocations: 99.48 kB / 0.563 GB, free: 1.645 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.3924, allocations: 4 kB / 0.563 GB, free: 1.641 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.3924, allocations: 4 kB / 0.563 GB, free: 1.637 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.3924, allocations: 0 / 0.563 GB, free: 1.637 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.0007542/0.3932, allocations: 369.8 kB / 0.5633 GB, free: 1.242 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.3932, allocations: 12.03 kB / 0.5634 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.009e-05/0.3933, allocations: 34.75 kB / 0.5634 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.932e-05/0.3933, allocations: 16.84 kB / 0.5634 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002881/0.3936, allocations: 144.7 kB / 0.5635 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.3936, allocations: 8.375 kB / 0.5636 GB, free: 1 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.521e-05/0.3937, allocations: 4.375 kB / 0.5636 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004122/0.3941, allocations: 205.8 kB / 0.5638 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.3941, allocations: 7.922 kB / 0.5638 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.3941, allocations: 4 kB / 0.5638 GB, free: 0.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.3941, allocations: 0 / 0.5638 GB, free: 0.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003724/0.3945, allocations: 111.8 kB / 0.5639 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007356/0.3952, allocations: 0.4922 MB / 0.5644 GB, free: 100 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004321/0.3956, allocations: 134.4 kB / 0.5645 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001881/0.3958, allocations: 56.84 kB / 0.5645 GB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.3959, allocations: 7.984 kB / 0.5645 GB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.3959, allocations: 30.56 kB / 0.5646 GB, free: 15.85 MB / 414.1 MB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.3959, allocations: 0 / 0.5646 GB, free: 15.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006537/0.3965, allocations: 189.5 kB / 0.5648 GB, free: 15.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.28e-05/0.3966, allocations: 106.8 kB / 0.5649 GB, free: 15.53 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.3968, allocations: 144.8 kB / 0.565 GB, free: 15.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.3968, allocations: 29.7 kB / 0.565 GB, free: 15.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.3969, allocations: 104.1 kB / 0.5651 GB, free: 15.24 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/0.3969, allocations: 27.84 kB / 0.5651 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.947e-05/0.397, allocations: 29.7 kB / 0.5652 GB, free: 15.18 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.3971, allocations: 322.8 kB / 0.5655 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001766/0.3973, allocations: 47.95 kB / 0.5655 GB, free: 14.8 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.3976, allocations: 131.6 kB / 0.5657 GB, free: 14.65 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003425/0.3979, allocations: 114.5 kB / 0.5658 GB, free: 14.53 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3979, allocations: 3.938 kB / 0.5658 GB, free: 14.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004085/0.3983, allocations: 153.8 kB / 0.5659 GB, free: 14.37 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.3983, allocations: 4 kB / 0.5659 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.3983, allocations: 4.188 kB / 0.5659 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.3984, allocations: 0 / 0.5659 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.3985, allocations: 31.91 kB / 0.566 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.3985, allocations: 8.062 kB / 0.566 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/0.3987, allocations: 43.86 kB / 0.566 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.807e-06/0.3987, allocations: 3.938 kB / 0.566 GB, free: 14.27 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.000139/0.3988, allocations: 125.8 kB / 0.5661 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.437e-05/0.3989, allocations: 7.953 kB / 0.5661 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.749e-05/0.3989, allocations: 12.72 kB / 0.5661 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.3989, allocations: 0 / 0.5661 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.3989, allocations: 0 / 0.5661 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3989, allocations: 3.938 kB / 0.5661 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002277/0.3991, allocations: 168.7 kB / 0.5663 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3991, allocations: 0 / 0.5663 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.3993, allocations: 23.97 kB / 0.5663 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.3993, allocations: 4 kB / 0.5663 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.3993, allocations: 0 / 0.5663 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.3993, allocations: 0 / 0.5663 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3993, allocations: 0 / 0.5663 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004534/0.3997, allocations: 247.2 kB / 0.5666 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.548e-05/0.3997, allocations: 19.88 kB / 0.5666 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.052e-05/0.3998, allocations: 0 / 0.5666 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001663/0.3999, allocations: 23.97 kB / 0.5666 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.36e-05/0.4, allocations: 11.92 kB / 0.5666 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/0.4, allocations: 4 kB / 0.5666 GB, free: 13.56 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.62e-05/0.4001, allocations: 105.8 kB / 0.5667 GB, free: 13.46 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4001, allocations: 4 kB / 0.5667 GB, free: 13.46 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002401/0.4003, allocations: 16 kB / 0.5667 GB, free: 13.44 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.000794/0.4011, allocations: 0.767 MB / 0.5675 GB, free: 12.65 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004206/0.4015, allocations: 116 kB / 0.5676 GB, free: 12.54 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.4015, allocations: 0 / 0.5676 GB, free: 12.54 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001863/0.4017, allocations: 59.94 kB / 0.5677 GB, free: 12.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.402, allocations: 23.86 kB / 0.5677 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002362/0.4044, allocations: 1.665 MB / 0.5693 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.507e-05/0.4045, allocations: 85.31 kB / 0.5694 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.805e-05/0.4046, allocations: 9.141 kB / 0.5694 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.177e-05/0.4046, allocations: 31.42 kB / 0.5694 GB, free: 10.55 MB / 414.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4046, allocations: 0 / 0.5694 GB, free: 10.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03041/0.435, allocations: 3.418 MB / 0.5728 GB, free: 7.242 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.55, allocations: 2.969 kB / 0.5728 GB, free: 7.242 MB / 414.1 MB " [Timeout remaining time 648] (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/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_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: 14.805854449979961]