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.001694/0.001694, allocations: 109.8 kB / 17.78 MB, free: 5.266 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.001866/0.001866, allocations: 183.1 kB / 18.71 MB, free: 4.34 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.389/1.389, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2318/0.2318, allocations: 44.2 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 63.89 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3462, allocations: 60.83 MB / 0.5184 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.00144/0.3477, allocations: 492.6 kB / 0.5189 GB, free: 2.969 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008153/0.3485, allocations: 375.1 kB / 0.5192 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.133e-05/0.3485, allocations: 1.062 kB / 0.5192 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.409e-05/0.3486, allocations: 0 / 0.5192 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.731e-06/0.3486, allocations: 0 / 0.5192 GB, free: 2.742 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.0007799/0.3494, allocations: 201 kB / 0.5194 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.657e-05/0.3494, allocations: 5.5 kB / 0.5194 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.097e-05/0.3495, allocations: 1.969 kB / 0.5194 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.273e-05/0.3495, allocations: 3.938 kB / 0.5194 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.965e-05/0.3495, allocations: 1.656 kB / 0.5194 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.091e-06/0.3495, allocations: 0 / 0.5194 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003767/0.3499, allocations: 206.9 kB / 0.5196 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.596e-06/0.3499, allocations: 3.984 kB / 0.5196 GB, free: 2.582 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.091e-05/0.3499, allocations: 6.078 kB / 0.5197 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002613/0.3502, allocations: 147.3 kB / 0.5198 GB, free: 2.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3502, allocations: 0 / 0.5198 GB, free: 2.543 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3502, allocations: 4 kB / 0.5198 GB, free: 2.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.471e-06/0.3502, allocations: 0 / 0.5198 GB, free: 2.539 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.0002949/0.3505, allocations: 373.9 kB / 0.5202 GB, free: 2.137 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.3506, allocations: 9.75 kB / 0.5202 GB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.915e-05/0.3506, allocations: 30.75 kB / 0.5202 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.226e-05/0.3506, allocations: 2.859 kB / 0.5202 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.729e-05/0.3507, allocations: 165 kB / 0.5204 GB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.247e-06/0.3507, allocations: 5.344 kB / 0.5204 GB, free: 1.895 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.015e-05/0.3507, allocations: 5.531 kB / 0.5204 GB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.03e-05/0.3508, allocations: 33.61 kB / 0.5204 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.3508, allocations: 3.938 kB / 0.5204 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-06/0.3508, allocations: 1.406 kB / 0.5204 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3508, allocations: 0 / 0.5204 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.645e-05/0.3508, allocations: 2.047 kB / 0.5204 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.849e-05/0.3509, allocations: 144.3 kB / 0.5205 GB, free: 1.664 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.956e-05/0.351, allocations: 25.45 kB / 0.5206 GB, free: 1.633 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.284e-05/0.351, allocations: 10.17 kB / 0.5206 GB, free: 1.621 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-06/0.351, allocations: 0.75 kB / 0.5206 GB, free: 1.621 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/0.351, allocations: 58.36 kB / 0.5206 GB, free: 1.551 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.351, allocations: 0 / 0.5206 GB, free: 1.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001491/0.3512, allocations: 65 kB / 0.5207 GB, free: 1.484 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.686e-05/0.3512, allocations: 83.22 kB / 0.5208 GB, free: 1.387 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.789e-05/0.3513, allocations: 89.86 kB / 0.5209 GB, free: 1.289 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.512e-06/0.3513, allocations: 25.7 kB / 0.5209 GB, free: 1.258 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.426e-06/0.3513, allocations: 85.55 kB / 0.521 GB, free: 1.172 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.748e-05/0.3513, allocations: 0 / 0.521 GB, free: 1.172 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.269e-05/0.3513, allocations: 13.02 kB / 0.521 GB, free: 1.156 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.864e-05/0.3514, allocations: 312.7 kB / 0.5213 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.117e-06/0.3514, allocations: 4.875 kB / 0.5213 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.141e-06/0.3514, allocations: 1.219 kB / 0.5213 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.126e-05/0.3514, allocations: 64.92 kB / 0.5213 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3514, allocations: 8 kB / 0.5214 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.938e-05/0.3515, allocations: 59.69 kB / 0.5214 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.3515, allocations: 33.12 kB / 0.5214 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.3515, allocations: 3.938 kB / 0.5214 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.3515, allocations: 1.125 kB / 0.5214 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.3516, allocations: 0 / 0.5214 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.3516, allocations: 0.7031 kB / 0.5214 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.569e-05/0.3516, allocations: 5.078 kB / 0.5215 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.3516, allocations: 1.156 kB / 0.5215 GB, free: 0.6562 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 4.519e-05/0.3516, allocations: 147 kB / 0.5216 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.534e-06/0.3517, allocations: 0.9688 kB / 0.5216 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.247e-06/0.3517, allocations: 11.58 kB / 0.5216 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3517, allocations: 1.953 kB / 0.5216 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.3517, allocations: 0 / 0.5216 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.3517, allocations: 0 / 0.5216 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.781e-05/0.3518, allocations: 144.9 kB / 0.5217 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3518, allocations: 1.516 kB / 0.5217 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.3518, allocations: 3.938 kB / 0.5217 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.3518, allocations: 1.625 kB / 0.5218 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.3518, allocations: 7.938 kB / 0.5218 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3518, allocations: 2.094 kB / 0.5218 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3518, allocations: 0 / 0.5218 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.689e-05/0.3519, allocations: 92.42 kB / 0.5218 GB, free: 192 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.401e-05/0.3519, allocations: 78.17 kB / 0.5219 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.303e-05/0.3519, allocations: 9.938 kB / 0.5219 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.007e-06/0.3519, allocations: 0.7031 kB / 0.5219 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.558e-05/0.3519, allocations: 5.375 kB / 0.5219 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-06/0.3519, allocations: 5.25 kB / 0.5219 GB, free: 80 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.119e-05/0.352, allocations: 76.08 kB / 0.522 GB, free: 4 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.352, allocations: 0 / 0.522 GB, free: 4 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003112/0.3523, allocations: 56.95 kB / 0.5221 GB, free: 15.99 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.0007253/0.353, allocations: 0.7165 MB / 0.5228 GB, free: 15.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001077/0.3531, allocations: 62.48 kB / 0.5228 GB, free: 15.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3531, allocations: 0 / 0.5228 GB, free: 15.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.36e-05/0.3532, allocations: 59.7 kB / 0.5229 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001288/0.3533, allocations: 2.406 kB / 0.5229 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003217/0.3537, allocations: 126.1 kB / 0.523 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.354, allocations: 0.6794 MB / 0.5237 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.059e-06/0.354, allocations: 0 / 0.5237 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.488e-05/0.354, allocations: 8.75 kB / 0.5237 GB, free: 14.36 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.354, allocations: 0 / 0.5237 GB, free: 14.36 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02375/0.3778, allocations: 2.471 MB / 0.5261 GB, free: 13.72 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.928/8.306, allocations: 6.281 kB / 0.5261 GB, free: 13.72 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