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.001414/0.001414, allocations: 111 kB / 20.48 MB, free: 1.273 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.001476/0.001476, allocations: 217.8 kB / 23.78 MB, free: 4.445 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.481/1.481, allocations: 230.5 MB / 257.4 MB, free: 7.715 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.2225/0.2225, allocations: 46.96 MB / 360.9 MB, free: 3.867 MB / 286.1 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 0.003231/0.003231, allocations: 80.16 kB / 0.4962 GB, free: 7.504 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3831/0.3864, allocations: 66.08 MB / 0.5607 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003494/0.3898, allocations: 1.7 MB / 0.5624 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00048/0.3903, allocations: 159.5 kB / 0.5625 GB, free: 2.301 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.906e-05/0.3904, allocations: 4 kB / 0.5626 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.815e-05/0.3904, allocations: 11.88 kB / 0.5626 GB, free: 2.285 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.826e-05/0.3905, allocations: 11.86 kB / 0.5626 GB, free: 2.273 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003601/0.3909, allocations: 99.81 kB / 0.5627 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001947/0.3911, allocations: 103.8 kB / 0.5628 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.3912, allocations: 27.67 kB / 0.5628 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.614e-05/0.3913, allocations: 47.86 kB / 0.5628 GB, free: 1.996 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.327e-05/0.3914, allocations: 35.83 kB / 0.5629 GB, free: 1.961 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.307e-05/0.3914, allocations: 8 kB / 0.5629 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.599e-05/0.3914, allocations: 11.94 kB / 0.5629 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.833e-05/0.3914, allocations: 19.98 kB / 0.5629 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.47e-05/0.3915, allocations: 35.8 kB / 0.5629 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001536/0.3916, allocations: 95.5 kB / 0.563 GB, free: 1.793 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3916, allocations: 0 / 0.563 GB, free: 1.793 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3916, allocations: 0 / 0.563 GB, free: 1.793 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.3916, allocations: 4 kB / 0.563 GB, free: 1.789 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.0007348/0.3924, allocations: 369.8 kB / 0.5634 GB, free: 1.395 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.3924, allocations: 12.03 kB / 0.5634 GB, free: 1.383 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.079e-05/0.3925, allocations: 38.75 kB / 0.5634 GB, free: 1.336 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.645e-05/0.3925, allocations: 16.84 kB / 0.5635 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002748/0.3928, allocations: 150.3 kB / 0.5636 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.3928, allocations: 4.375 kB / 0.5636 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.3928, allocations: 8.375 kB / 0.5636 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004003/0.3932, allocations: 197.9 kB / 0.5638 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.3932, allocations: 7.938 kB / 0.5638 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/0.3933, allocations: 7.938 kB / 0.5638 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.3933, allocations: 4 kB / 0.5638 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003708/0.3936, allocations: 106.1 kB / 0.5639 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006985/0.3943, allocations: 0.4961 MB / 0.5644 GB, free: 248 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004103/0.3947, allocations: 134.5 kB / 0.5645 GB, free: 104 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001899/0.3949, allocations: 52.84 kB / 0.5646 GB, free: 48 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.395, allocations: 12.02 kB / 0.5646 GB, free: 36 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.253e-05/0.395, allocations: 34.55 kB / 0.5646 GB, free: 15.99 MB / 414.1 MB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.395, allocations: 0 / 0.5646 GB, free: 15.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.000639/0.3956, allocations: 185.5 kB / 0.5648 GB, free: 15.8 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.398e-05/0.3957, allocations: 110.8 kB / 0.5649 GB, free: 15.67 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/0.3958, allocations: 140.8 kB / 0.565 GB, free: 15.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.3959, allocations: 29.7 kB / 0.5651 GB, free: 15.49 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.719e-05/0.3959, allocations: 112.1 kB / 0.5652 GB, free: 15.38 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.735e-05/0.396, allocations: 15.86 kB / 0.5652 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.977e-05/0.396, allocations: 29.7 kB / 0.5652 GB, free: 15.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.3962, allocations: 322.8 kB / 0.5655 GB, free: 15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.3963, allocations: 51.89 kB / 0.5656 GB, free: 14.95 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000232/0.3966, allocations: 139.6 kB / 0.5657 GB, free: 14.79 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003325/0.3969, allocations: 114.7 kB / 0.5658 GB, free: 14.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3969, allocations: 0 / 0.5658 GB, free: 14.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004262/0.3973, allocations: 161.5 kB / 0.566 GB, free: 14.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.3973, allocations: 6.031 kB / 0.566 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.3973, allocations: 0 / 0.566 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.3974, allocations: 7.984 kB / 0.566 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.3975, allocations: 24.05 kB / 0.566 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.3975, allocations: 0 / 0.566 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001488/0.3977, allocations: 39.78 kB / 0.5661 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.3977, allocations: 4 kB / 0.5661 GB, free: 14.42 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.0001244/0.3978, allocations: 121.8 kB / 0.5662 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.29e-05/0.3978, allocations: 7.953 kB / 0.5662 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.126e-05/0.3979, allocations: 16.66 kB / 0.5662 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.3979, allocations: 4 kB / 0.5662 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3979, allocations: 4 kB / 0.5662 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.3979, allocations: 7.922 kB / 0.5662 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002116/0.3981, allocations: 160.7 kB / 0.5664 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3981, allocations: 0 / 0.5664 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.3982, allocations: 19.97 kB / 0.5664 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.3982, allocations: 0 / 0.5664 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.3982, allocations: 4 kB / 0.5664 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3982, allocations: 0 / 0.5664 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3982, allocations: 0 / 0.5664 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004726/0.3987, allocations: 251.3 kB / 0.5666 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.723e-05/0.3987, allocations: 7.953 kB / 0.5666 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.152e-05/0.3987, allocations: 0 / 0.5666 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001631/0.3989, allocations: 32.08 kB / 0.5667 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.197e-05/0.399, allocations: 11.92 kB / 0.5667 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.399, allocations: 7.938 kB / 0.5667 GB, free: 13.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.06e-05/0.3991, allocations: 105.8 kB / 0.5668 GB, free: 13.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3991, allocations: 0 / 0.5668 GB, free: 13.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002416/0.3993, allocations: 23.94 kB / 0.5668 GB, free: 13.58 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.0008055/0.4001, allocations: 0.7554 MB / 0.5675 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004356/0.4005, allocations: 119.8 kB / 0.5677 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4005, allocations: 0 / 0.5677 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001894/0.4007, allocations: 63.88 kB / 0.5677 GB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000327/0.4011, allocations: 23.86 kB / 0.5677 GB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002352/0.4034, allocations: 1.662 MB / 0.5694 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.766e-05/0.4035, allocations: 81.33 kB / 0.5694 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.515e-05/0.4035, allocations: 16.64 kB / 0.5695 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.771e-05/0.4036, allocations: 27.44 kB / 0.5695 GB, free: 10.7 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4036, allocations: 4 kB / 0.5695 GB, free: 10.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02894/0.4325, allocations: 3.498 MB / 0.5729 GB, free: 7.309 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.18, allocations: 4.062 kB / 0.5729 GB, free: 7.305 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.24279136000041]