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.001215/0.001215, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001382/0.001382, allocations: 206.8 kB / 23.73 MB, free: 4.523 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.374/1.374, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2197/0.2197, allocations: 46.96 MB / 360.9 MB, free: 4.043 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.001935/0.001935, allocations: 75.89 kB / 0.4961 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3133, allocations: 66.04 MB / 0.5606 GB, free: 4.246 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003313/0.3166, allocations: 1.692 MB / 0.5622 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004206/0.317, allocations: 155.5 kB / 0.5624 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.259e-05/0.3171, allocations: 0 / 0.5624 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.019e-05/0.3172, allocations: 15.86 kB / 0.5624 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.217e-05/0.3172, allocations: 11.88 kB / 0.5624 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003439/0.3176, allocations: 99.19 kB / 0.5625 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001883/0.3177, allocations: 115.7 kB / 0.5626 GB, free: 2.156 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.3179, allocations: 27.41 kB / 0.5626 GB, free: 2.125 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.376e-05/0.318, allocations: 39.86 kB / 0.5627 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.974e-05/0.318, allocations: 43.77 kB / 0.5627 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.679e-05/0.318, allocations: 12 kB / 0.5627 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.015e-05/0.3181, allocations: 8 kB / 0.5627 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.708e-05/0.3181, allocations: 27.92 kB / 0.5628 GB, free: 1.996 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.599e-05/0.3181, allocations: 35.8 kB / 0.5628 GB, free: 1.961 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001439/0.3183, allocations: 91.56 kB / 0.5629 GB, free: 1.871 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3183, allocations: 0 / 0.5629 GB, free: 1.871 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3183, allocations: 0 / 0.5629 GB, free: 1.871 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.3183, allocations: 0 / 0.5629 GB, free: 1.871 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.0006919/0.319, allocations: 373.8 kB / 0.5632 GB, free: 1.473 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.319, allocations: 12.03 kB / 0.5633 GB, free: 1.461 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.148e-05/0.3191, allocations: 38.75 kB / 0.5633 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.05e-05/0.3191, allocations: 16.78 kB / 0.5633 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002661/0.3194, allocations: 142.3 kB / 0.5634 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.3194, allocations: 8.375 kB / 0.5635 GB, free: 1.227 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.376e-05/0.3194, allocations: 4.375 kB / 0.5635 GB, free: 1.223 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004045/0.3198, allocations: 212.8 kB / 0.5637 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.3198, allocations: 7.938 kB / 0.5637 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.3198, allocations: 0 / 0.5637 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.3198, allocations: 4 kB / 0.5637 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003491/0.3202, allocations: 107.8 kB / 0.5638 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006878/0.3209, allocations: 0.4961 MB / 0.5643 GB, free: 328 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003989/0.3213, allocations: 134.4 kB / 0.5644 GB, free: 184 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001709/0.3215, allocations: 52.84 kB / 0.5644 GB, free: 128 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.3215, allocations: 11.98 kB / 0.5645 GB, free: 116 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.3215, allocations: 38.5 kB / 0.5645 GB, free: 68 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.3215, allocations: 0 / 0.5645 GB, free: 68 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006237/0.3221, allocations: 177.5 kB / 0.5647 GB, free: 15.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/0.3222, allocations: 114.8 kB / 0.5648 GB, free: 15.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.3223, allocations: 144.5 kB / 0.5649 GB, free: 15.6 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.3223, allocations: 25.7 kB / 0.5649 GB, free: 15.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.464e-05/0.3224, allocations: 108.1 kB / 0.565 GB, free: 15.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.824e-05/0.3224, allocations: 19.86 kB / 0.565 GB, free: 15.44 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.515e-05/0.3225, allocations: 33.7 kB / 0.5651 GB, free: 15.4 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.3226, allocations: 318.8 kB / 0.5654 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001714/0.3228, allocations: 51.89 kB / 0.5654 GB, free: 15.03 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/0.323, allocations: 139.6 kB / 0.5656 GB, free: 14.86 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003224/0.3233, allocations: 110.6 kB / 0.5657 GB, free: 14.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3234, allocations: 3.938 kB / 0.5657 GB, free: 14.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003935/0.3237, allocations: 153.5 kB / 0.5658 GB, free: 14.59 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.3238, allocations: 4 kB / 0.5658 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.3238, allocations: 0 / 0.5658 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.3238, allocations: 0 / 0.5658 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.3239, allocations: 32.03 kB / 0.5659 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.3239, allocations: 0 / 0.5659 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001397/0.3241, allocations: 39.8 kB / 0.5659 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.3241, allocations: 4 kB / 0.5659 GB, free: 14.51 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 9.773e-05/0.3242, allocations: 117.8 kB / 0.566 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.84e-05/0.3242, allocations: 23.89 kB / 0.566 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.571e-05/0.3242, allocations: 8.719 kB / 0.566 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.3242, allocations: 0 / 0.566 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3243, allocations: 7.938 kB / 0.5661 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.3243, allocations: 11.92 kB / 0.5661 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002014/0.3245, allocations: 164.7 kB / 0.5662 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3245, allocations: 0 / 0.5662 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.3246, allocations: 23.97 kB / 0.5662 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.3246, allocations: 0 / 0.5662 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.3246, allocations: 0 / 0.5662 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.3246, allocations: 4 kB / 0.5662 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3246, allocations: 0 / 0.5662 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004265/0.325, allocations: 243.3 kB / 0.5665 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.555e-05/0.325, allocations: 11.89 kB / 0.5665 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.325, allocations: 0 / 0.5665 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001488/0.3252, allocations: 24.16 kB / 0.5665 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.869e-05/0.3252, allocations: 19.86 kB / 0.5665 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.3252, allocations: 3.938 kB / 0.5665 GB, free: 13.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.081e-05/0.3253, allocations: 111.2 kB / 0.5666 GB, free: 13.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3253, allocations: 0 / 0.5666 GB, free: 13.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002327/0.3256, allocations: 20 kB / 0.5667 GB, free: 13.66 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.0007145/0.3263, allocations: 0.7558 MB / 0.5674 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004097/0.3267, allocations: 123.9 kB / 0.5675 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3267, allocations: 0 / 0.5675 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.3269, allocations: 64.03 kB / 0.5676 GB, free: 12.69 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.3272, allocations: 24.23 kB / 0.5676 GB, free: 12.67 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002201/0.3294, allocations: 1.657 MB / 0.5692 GB, free: 10.92 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.651e-05/0.3294, allocations: 85.31 kB / 0.5693 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.719e-05/0.3295, allocations: 8.672 kB / 0.5693 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.212e-05/0.3296, allocations: 31.42 kB / 0.5693 GB, free: 10.78 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3296, allocations: 0 / 0.5693 GB, free: 10.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02731/0.3569, allocations: 3.438 MB / 0.5727 GB, free: 7.477 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/10.67, allocations: 10.73 kB / 0.5727 GB, free: 7.469 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.584309119993122]