Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.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.001271/0.001271, allocations: 115.6 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.001399/0.001399, allocations: 214.1 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.495/1.495, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2193/0.2193, allocations: 44.91 MB / 358.8 MB, free: 6.285 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.Math.TestBooleanFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestBooleanFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestBooleanFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestBooleanFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00228/0.00228, allocations: 71.89 kB / 0.4931 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.327, allocations: 65.47 MB / 0.557 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001638/0.3286, allocations: 0.4895 MB / 0.5575 GB, free: 7.172 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008704/0.3295, allocations: 381.3 kB / 0.5579 GB, free: 6.902 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.372e-05/0.3295, allocations: 1.094 kB / 0.5579 GB, free: 6.902 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.202e-05/0.3295, allocations: 4 kB / 0.5579 GB, free: 6.898 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.769e-06/0.3295, allocations: 0 / 0.5579 GB, free: 6.898 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:38:3-118:23:writable] Warning: Pure function 'ModelicaTest.Math.BooleanFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008605/0.3304, allocations: 207.2 kB / 0.5581 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.266e-05/0.3304, allocations: 7.938 kB / 0.5581 GB, free: 6.723 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.13e-05/0.3305, allocations: 3.984 kB / 0.5581 GB, free: 6.719 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.409e-05/0.3305, allocations: 0 / 0.5581 GB, free: 6.719 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.457e-05/0.3305, allocations: 0 / 0.5581 GB, free: 6.719 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.019e-06/0.3305, allocations: 0 / 0.5581 GB, free: 6.719 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004331/0.3309, allocations: 239.5 kB / 0.5583 GB, free: 6.484 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.207e-06/0.3309, allocations: 7.922 kB / 0.5583 GB, free: 6.477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.869e-05/0.331, allocations: 4 kB / 0.5583 GB, free: 6.473 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002548/0.3312, allocations: 161.5 kB / 0.5585 GB, free: 6.316 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.3312, allocations: 0 / 0.5585 GB, free: 6.316 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3312, allocations: 0 / 0.5585 GB, free: 6.316 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.3312, allocations: 4 kB / 0.5585 GB, free: 6.312 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003597/0.3316, allocations: 291.9 kB / 0.5587 GB, free: 5.988 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.3316, allocations: 12.03 kB / 0.5588 GB, free: 5.977 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.802e-05/0.3317, allocations: 34.69 kB / 0.5588 GB, free: 5.934 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.451e-05/0.3317, allocations: 0.9375 kB / 0.5588 GB, free: 5.934 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.656e-05/0.3318, allocations: 102.5 kB / 0.5589 GB, free: 5.809 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.3318, allocations: 4.375 kB / 0.5589 GB, free: 5.805 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.875e-06/0.3318, allocations: 4.375 kB / 0.5589 GB, free: 5.801 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.794e-05/0.3319, allocations: 30.25 kB / 0.5589 GB, free: 5.766 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.3319, allocations: 3.938 kB / 0.5589 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.701e-06/0.3319, allocations: 0 / 0.5589 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.3319, allocations: 4 kB / 0.5589 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.564e-05/0.3319, allocations: 0 / 0.5589 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000129/0.332, allocations: 116.8 kB / 0.559 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.595e-05/0.3321, allocations: 26.55 kB / 0.5591 GB, free: 5.566 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.609e-05/0.3321, allocations: 8.844 kB / 0.5591 GB, free: 5.555 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.939e-06/0.3321, allocations: 3.984 kB / 0.5591 GB, free: 5.551 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.195e-05/0.3322, allocations: 56.27 kB / 0.5591 GB, free: 5.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.3322, allocations: 4.062 kB / 0.5591 GB, free: 5.477 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001796/0.3323, allocations: 67.3 kB / 0.5592 GB, free: 5.398 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/0.3324, allocations: 85.05 kB / 0.5593 GB, free: 5.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.415e-05/0.3325, allocations: 101.9 kB / 0.5594 GB, free: 5.188 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.3325, allocations: 25.7 kB / 0.5594 GB, free: 5.156 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.268e-05/0.3325, allocations: 80.14 kB / 0.5595 GB, free: 5.074 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.675e-05/0.3325, allocations: 0 / 0.5595 GB, free: 5.074 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.881e-05/0.3326, allocations: 13.72 kB / 0.5595 GB, free: 5.055 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.3327, allocations: 314.8 kB / 0.5598 GB, free: 4.738 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.707e-06/0.3327, allocations: 0 / 0.5598 GB, free: 4.738 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.668e-06/0.3327, allocations: 0 / 0.5598 GB, free: 4.738 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.031e-05/0.3328, allocations: 64.33 kB / 0.5599 GB, free: 4.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3328, allocations: 0 / 0.5599 GB, free: 4.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.139e-05/0.3328, allocations: 63.39 kB / 0.5599 GB, free: 4.586 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.184e-05/0.3329, allocations: 29.7 kB / 0.5599 GB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3329, allocations: 11.88 kB / 0.56 GB, free: 4.539 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.3329, allocations: 4 kB / 0.56 GB, free: 4.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.3329, allocations: 0 / 0.56 GB, free: 4.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.928e-06/0.3329, allocations: 0 / 0.56 GB, free: 4.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.416e-05/0.3329, allocations: 3.938 kB / 0.56 GB, free: 4.531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-06/0.3329, allocations: 4.031 kB / 0.56 GB, free: 4.527 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001005/0.333, allocations: 143.5 kB / 0.5601 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.193e-06/0.333, allocations: 0 / 0.5601 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.142e-05/0.333, allocations: 6.938 kB / 0.5601 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.51e-07/0.333, allocations: 0 / 0.5601 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.333, allocations: 0 / 0.5601 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.333, allocations: 0 / 0.5601 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.3e-05/0.3331, allocations: 116.8 kB / 0.5602 GB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3331, allocations: 0 / 0.5602 GB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.047e-06/0.3331, allocations: 3.984 kB / 0.5602 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.3331, allocations: 4 kB / 0.5602 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.3331, allocations: 3.938 kB / 0.5602 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3331, allocations: 4 kB / 0.5602 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3331, allocations: 0 / 0.5602 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.536e-05/0.3332, allocations: 86.78 kB / 0.5603 GB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.204e-06/0.3332, allocations: 7.984 kB / 0.5603 GB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.206e-05/0.3333, allocations: 3.938 kB / 0.5603 GB, free: 4.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.476e-06/0.3333, allocations: 4.031 kB / 0.5603 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.167e-05/0.3333, allocations: 4 kB / 0.5603 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-06/0.3333, allocations: 3.938 kB / 0.5603 GB, free: 4.059 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.283e-05/0.3333, allocations: 79.28 kB / 0.5604 GB, free: 3.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3333, allocations: 0 / 0.5604 GB, free: 3.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002621/0.3336, allocations: 55.86 kB / 0.5605 GB, free: 3.926 MB / 398.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.00068/0.3343, allocations: 0.7098 MB / 0.5612 GB, free: 3.184 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.697e-05/0.3344, allocations: 59.34 kB / 0.5612 GB, free: 3.113 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3344, allocations: 0 / 0.5612 GB, free: 3.113 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.454e-05/0.3344, allocations: 59.39 kB / 0.5613 GB, free: 3.043 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001322/0.3345, allocations: 6.125 kB / 0.5613 GB, free: 3.039 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003246/0.3349, allocations: 130.8 kB / 0.5614 GB, free: 2.871 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.3352, allocations: 0.669 MB / 0.5621 GB, free: 2.176 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.644e-06/0.3352, allocations: 4 kB / 0.5621 GB, free: 2.172 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.442e-05/0.3352, allocations: 7.438 kB / 0.5621 GB, free: 2.164 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3352, allocations: 0 / 0.5621 GB, free: 2.164 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02728/0.3625, allocations: 2.573 MB / 0.5646 GB, free: 15.72 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.24, allocations: 6.516 kB / 0.5646 GB, free: 15.72 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_Math_TestBooleanFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestBooleanFunctions/TestBooleanFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.175941168999998]