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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 113.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 179.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2258/0.2258, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 63.91 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3517/0.353, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001514/0.3546, allocations: 0.4892 MB / 0.5189 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007707/0.3554, allocations: 368.1 kB / 0.5192 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.502e-05/0.3554, allocations: 4 kB / 0.5192 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.527e-05/0.3555, allocations: 0 / 0.5192 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.312e-06/0.3555, allocations: 1.125 kB / 0.5192 GB, free: 2.762 MB / 382.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.0008027/0.3563, allocations: 195.2 kB / 0.5194 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.468e-05/0.3564, allocations: 5.922 kB / 0.5194 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.959e-05/0.3564, allocations: 1.719 kB / 0.5194 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.099e-05/0.3564, allocations: 5.062 kB / 0.5194 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.966e-05/0.3564, allocations: 1.062 kB / 0.5194 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.34e-06/0.3564, allocations: 0 / 0.5194 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004321/0.3569, allocations: 206.1 kB / 0.5196 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.384e-06/0.3569, allocations: 5.188 kB / 0.5196 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.88e-05/0.3569, allocations: 5 kB / 0.5196 GB, free: 2.602 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003027/0.3572, allocations: 152.3 kB / 0.5198 GB, free: 2.562 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.3572, allocations: 0 / 0.5198 GB, free: 2.562 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3573, allocations: 0 / 0.5198 GB, free: 2.562 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.3573, allocations: 1 kB / 0.5198 GB, free: 2.562 MB / 382.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.0003197/0.3576, allocations: 371.6 kB / 0.5201 GB, free: 2.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.3576, allocations: 10.94 kB / 0.5202 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.887e-05/0.3577, allocations: 30.75 kB / 0.5202 GB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.438e-05/0.3577, allocations: 2.125 kB / 0.5202 GB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.203e-05/0.3577, allocations: 165.7 kB / 0.5203 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.3578, allocations: 5.5 kB / 0.5204 GB, free: 1.918 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.939e-06/0.3578, allocations: 384 / 0.5204 GB, free: 1.918 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.302e-05/0.3579, allocations: 30.73 kB / 0.5204 GB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.3579, allocations: 3.938 kB / 0.5204 GB, free: 1.883 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-06/0.3579, allocations: 0.7031 kB / 0.5204 GB, free: 1.883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.3579, allocations: 1.188 kB / 0.5204 GB, free: 1.883 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.824e-05/0.3579, allocations: 5.094 kB / 0.5204 GB, free: 1.879 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.187e-05/0.358, allocations: 148.8 kB / 0.5205 GB, free: 1.688 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.967e-05/0.358, allocations: 20.89 kB / 0.5206 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.368e-05/0.3581, allocations: 6.656 kB / 0.5206 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.815e-06/0.3581, allocations: 0 / 0.5206 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.3581, allocations: 58.02 kB / 0.5206 GB, free: 1.582 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.3581, allocations: 1.031 kB / 0.5206 GB, free: 1.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001463/0.3583, allocations: 69.95 kB / 0.5207 GB, free: 1.512 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.407e-05/0.3583, allocations: 81.23 kB / 0.5208 GB, free: 1.414 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.649e-05/0.3583, allocations: 91.86 kB / 0.5208 GB, free: 1.316 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.292e-06/0.3583, allocations: 25.7 kB / 0.5209 GB, free: 1.285 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.947e-06/0.3583, allocations: 80.14 kB / 0.521 GB, free: 1.203 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.11e-05/0.3584, allocations: 5.141 kB / 0.521 GB, free: 1.199 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.441e-05/0.3584, allocations: 16.91 kB / 0.521 GB, free: 1.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.716e-05/0.3584, allocations: 311.6 kB / 0.5213 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.997e-06/0.3585, allocations: 5.156 kB / 0.5213 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.192e-06/0.3585, allocations: 6.328 kB / 0.5213 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.048e-05/0.3585, allocations: 63.62 kB / 0.5213 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3585, allocations: 3.938 kB / 0.5213 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.309e-05/0.3586, allocations: 65.64 kB / 0.5214 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.3586, allocations: 31.56 kB / 0.5214 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.3586, allocations: 3.938 kB / 0.5214 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.889e-05/0.3586, allocations: 0 / 0.5214 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.352e-06/0.3587, allocations: 1.672 kB / 0.5214 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.3587, allocations: 0 / 0.5214 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.662e-05/0.3587, allocations: 13.03 kB / 0.5215 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.3587, allocations: 1.75 kB / 0.5215 GB, free: 0.668 MB / 382.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 5.375e-05/0.3588, allocations: 142.2 kB / 0.5216 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.237e-06/0.3588, allocations: 1.828 kB / 0.5216 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.008e-05/0.3588, allocations: 11.91 kB / 0.5216 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3588, allocations: 1 kB / 0.5216 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.3588, allocations: 0 / 0.5216 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.3588, allocations: 0 / 0.5216 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.007e-05/0.3589, allocations: 146.1 kB / 0.5217 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3589, allocations: 4 kB / 0.5217 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.3589, allocations: 1.125 kB / 0.5218 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.3589, allocations: 0.5625 kB / 0.5218 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.3589, allocations: 5.094 kB / 0.5218 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.3589, allocations: 0 / 0.5218 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3589, allocations: 2 kB / 0.5218 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.959e-05/0.359, allocations: 87.84 kB / 0.5218 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.491e-05/0.359, allocations: 86.97 kB / 0.5219 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.252e-05/0.359, allocations: 5.578 kB / 0.5219 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.887e-06/0.359, allocations: 0 / 0.5219 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.563e-05/0.3591, allocations: 1.438 kB / 0.5219 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.3591, allocations: 5 kB / 0.5219 GB, free: 104 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.061e-05/0.3591, allocations: 75.28 kB / 0.522 GB, free: 28 kB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3591, allocations: 1.125 kB / 0.522 GB, free: 28 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003174/0.3594, allocations: 56.16 kB / 0.5221 GB, free: 16 kB / 382.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.0006586/0.3601, allocations: 0.7251 MB / 0.5228 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.356e-05/0.3602, allocations: 62.23 kB / 0.5228 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3602, allocations: 1.25 kB / 0.5228 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.167e-05/0.3602, allocations: 62.36 kB / 0.5229 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001226/0.3603, allocations: 6.938 kB / 0.5229 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002851/0.3606, allocations: 121.7 kB / 0.523 GB, free: 15.08 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/0.361, allocations: 0.6757 MB / 0.5237 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.921e-06/0.361, allocations: 0 / 0.5237 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.288e-05/0.361, allocations: 8.688 kB / 0.5237 GB, free: 14.38 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.361, allocations: 0 / 0.5237 GB, free: 14.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02256/0.3836, allocations: 2.457 MB / 0.5261 GB, free: 13.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.686/8.07, allocations: 13.28 kB / 0.5261 GB, free: 13.75 MB / 398.1 MB (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) 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) Reference file matches