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.001375/0.001375, allocations: 116.7 kB / 20.43 MB, free: 1.457 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.002309/0.002309, allocations: 213.6 kB / 23.74 MB, free: 4.672 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.519/1.519, allocations: 230.5 MB / 257.4 MB, free: 8.012 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.2523/0.2523, allocations: 46.93 MB / 360.8 MB, free: 4.262 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.002274/0.002274, allocations: 83.88 kB / 0.4962 GB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3951/0.3973, allocations: 66.08 MB / 0.5607 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003502/0.4008, allocations: 1.727 MB / 0.5624 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004815/0.4013, allocations: 167.5 kB / 0.5626 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.82e-05/0.4014, allocations: 4 kB / 0.5626 GB, free: 2.387 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.84e-05/0.4014, allocations: 7.875 kB / 0.5626 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.593e-05/0.4015, allocations: 15.81 kB / 0.5626 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004222/0.4019, allocations: 95.23 kB / 0.5627 GB, free: 2.273 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.4022, allocations: 111.8 kB / 0.5628 GB, free: 2.164 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000188/0.4024, allocations: 27.41 kB / 0.5628 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.4025, allocations: 43.84 kB / 0.5629 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.039e-05/0.4025, allocations: 43.78 kB / 0.5629 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.861e-05/0.4026, allocations: 8 kB / 0.5629 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.195e-05/0.4026, allocations: 11.94 kB / 0.5629 GB, free: 2.027 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.396e-05/0.4027, allocations: 35.84 kB / 0.563 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.578e-05/0.4027, allocations: 39.8 kB / 0.563 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002208/0.4029, allocations: 87.58 kB / 0.5631 GB, free: 1.867 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.4029, allocations: 0 / 0.5631 GB, free: 1.867 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.4029, allocations: 0 / 0.5631 GB, free: 1.867 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.932e-05/0.403, allocations: 0 / 0.5631 GB, free: 1.867 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.0008904/0.4039, allocations: 373.8 kB / 0.5634 GB, free: 1.469 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/0.4039, allocations: 12.03 kB / 0.5634 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.096e-05/0.404, allocations: 42.73 kB / 0.5635 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.658e-05/0.404, allocations: 12.84 kB / 0.5635 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003443/0.4044, allocations: 144.5 kB / 0.5636 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.4044, allocations: 8.375 kB / 0.5636 GB, free: 1.223 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.499e-05/0.4044, allocations: 4.375 kB / 0.5636 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000407/0.4048, allocations: 158.4 kB / 0.5638 GB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.4048, allocations: 3.938 kB / 0.5638 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.4048, allocations: 0 / 0.5638 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.4049, allocations: 4 kB / 0.5638 GB, free: 1.035 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003798/0.4052, allocations: 111.8 kB / 0.5639 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000774/0.406, allocations: 0.5117 MB / 0.5644 GB, free: 372 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004004/0.4064, allocations: 134.4 kB / 0.5645 GB, free: 228 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.4066, allocations: 56.84 kB / 0.5646 GB, free: 168 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.4066, allocations: 4 kB / 0.5646 GB, free: 164 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.4066, allocations: 34.56 kB / 0.5646 GB, free: 120 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.4066, allocations: 0 / 0.5646 GB, free: 120 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006671/0.4073, allocations: 185.5 kB / 0.5648 GB, free: 15.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.646e-05/0.4074, allocations: 110.8 kB / 0.5649 GB, free: 15.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.4075, allocations: 140.8 kB / 0.5651 GB, free: 15.65 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.4076, allocations: 25.7 kB / 0.5651 GB, free: 15.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.845e-05/0.4076, allocations: 108.1 kB / 0.5652 GB, free: 15.51 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.976e-05/0.4077, allocations: 19.86 kB / 0.5652 GB, free: 15.49 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.958e-05/0.4077, allocations: 37.64 kB / 0.5652 GB, free: 15.45 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.4079, allocations: 322.8 kB / 0.5655 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001718/0.408, allocations: 47.95 kB / 0.5656 GB, free: 15.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.4082, allocations: 84.23 kB / 0.5657 GB, free: 14.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003146/0.4085, allocations: 118.5 kB / 0.5658 GB, free: 14.85 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.4086, allocations: 0 / 0.5658 GB, free: 14.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003842/0.4089, allocations: 149.7 kB / 0.5659 GB, free: 14.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.409, allocations: 7.984 kB / 0.5659 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.409, allocations: 7.938 kB / 0.5659 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.409, allocations: 0 / 0.5659 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.4091, allocations: 23.97 kB / 0.566 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.4091, allocations: 8.062 kB / 0.566 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001461/0.4093, allocations: 39.8 kB / 0.566 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.413e-05/0.4093, allocations: 4 kB / 0.566 GB, free: 14.61 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.0001197/0.4094, allocations: 123.1 kB / 0.5661 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.654e-05/0.4095, allocations: 11.94 kB / 0.5661 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.826e-05/0.4095, allocations: 16.72 kB / 0.5662 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.4095, allocations: 3.984 kB / 0.5662 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.4095, allocations: 4 kB / 0.5662 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.4095, allocations: 3.938 kB / 0.5662 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002346/0.4098, allocations: 172.7 kB / 0.5663 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.4098, allocations: 0 / 0.5663 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.4099, allocations: 19.98 kB / 0.5663 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.4099, allocations: 3.984 kB / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.4099, allocations: 4 kB / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.4099, allocations: 0 / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.4099, allocations: 0 / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004381/0.4103, allocations: 247.2 kB / 0.5666 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.472e-05/0.4103, allocations: 7.953 kB / 0.5666 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.606e-05/0.4104, allocations: 8 kB / 0.5666 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001516/0.4105, allocations: 23.97 kB / 0.5666 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.753e-05/0.4106, allocations: 15.92 kB / 0.5666 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.4106, allocations: 0 / 0.5666 GB, free: 13.89 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.807e-05/0.4107, allocations: 109.8 kB / 0.5668 GB, free: 13.78 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4107, allocations: 0 / 0.5668 GB, free: 13.78 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002386/0.4109, allocations: 19.94 kB / 0.5668 GB, free: 13.76 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.0007654/0.4117, allocations: 0.7713 MB / 0.5675 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004163/0.4121, allocations: 112 kB / 0.5676 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4121, allocations: 0 / 0.5676 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001776/0.4123, allocations: 63.88 kB / 0.5677 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.4126, allocations: 21.97 kB / 0.5677 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002332/0.4149, allocations: 1.661 MB / 0.5693 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000344/0.4153, allocations: 0.7002 MB / 0.57 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.483e-05/0.4153, allocations: 8.672 kB / 0.57 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.253e-05/0.4154, allocations: 35.42 kB / 0.5701 GB, free: 10.25 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4154, allocations: 0 / 0.5701 GB, free: 10.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02898/0.4444, allocations: 2.911 MB / 0.5729 GB, free: 7.434 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.36, allocations: 2.812 kB / 0.5729 GB, free: 7.434 MB / 414.1 MB " [Timeout remaining time 649] (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.54880251600116]