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.001314/0.001314, allocations: 112.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.001332/0.001332, allocations: 184.8 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.301/1.301, 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.2006/0.2006, allocations: 44.19 MB / 336.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 63.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3583, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001408/0.3598, allocations: 0.49 MB / 0.5189 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007441/0.3606, allocations: 367.2 kB / 0.5192 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.477e-05/0.3606, allocations: 1.531 kB / 0.5192 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.462e-05/0.3606, allocations: 0 / 0.5192 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.48e-06/0.3606, allocations: 0 / 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.0006967/0.3613, allocations: 195 kB / 0.5194 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.319e-05/0.3614, allocations: 7.281 kB / 0.5194 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.609e-05/0.3614, allocations: 2.031 kB / 0.5194 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.22e-05/0.3614, allocations: 7.922 kB / 0.5194 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.937e-05/0.3614, allocations: 1.406 kB / 0.5194 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.109e-06/0.3615, allocations: 3.938 kB / 0.5194 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003429/0.3618, allocations: 209.8 kB / 0.5196 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.132e-06/0.3618, allocations: 0 / 0.5196 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.73e-05/0.3618, allocations: 1.031 kB / 0.5196 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003014/0.3622, allocations: 148.7 kB / 0.5198 GB, free: 2.562 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3622, allocations: 1.125 kB / 0.5198 GB, free: 2.562 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3622, allocations: 0 / 0.5198 GB, free: 2.562 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.3622, allocations: 4 kB / 0.5198 GB, free: 2.559 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.0002973/0.3625, allocations: 372.4 kB / 0.5202 GB, free: 2.156 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.3625, allocations: 9.672 kB / 0.5202 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.473e-05/0.3626, allocations: 35.66 kB / 0.5202 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.377e-05/0.3626, allocations: 2.219 kB / 0.5202 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.74e-05/0.3626, allocations: 165.8 kB / 0.5204 GB, free: 1.914 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.011e-05/0.3627, allocations: 384 / 0.5204 GB, free: 1.914 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.855e-06/0.3627, allocations: 2.25 kB / 0.5204 GB, free: 1.914 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.163e-05/0.3628, allocations: 33.67 kB / 0.5204 GB, free: 1.879 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.3628, allocations: 3.938 kB / 0.5204 GB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.414e-06/0.3628, allocations: 1.938 kB / 0.5204 GB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.3628, allocations: 0.7031 kB / 0.5204 GB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.505e-05/0.3628, allocations: 0 / 0.5204 GB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.018e-05/0.3629, allocations: 148.2 kB / 0.5205 GB, free: 1.684 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.211e-05/0.363, allocations: 21.5 kB / 0.5206 GB, free: 1.656 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.327e-05/0.363, allocations: 6.375 kB / 0.5206 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.437e-06/0.363, allocations: 5.188 kB / 0.5206 GB, free: 1.645 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.363, allocations: 58.27 kB / 0.5206 GB, free: 1.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.71e-07/0.363, allocations: 0 / 0.5206 GB, free: 1.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001516/0.3632, allocations: 69.66 kB / 0.5207 GB, free: 1.504 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.565e-05/0.3632, allocations: 78.27 kB / 0.5208 GB, free: 1.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.74e-05/0.3632, allocations: 90.66 kB / 0.5209 GB, free: 1.312 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.981e-06/0.3633, allocations: 25.7 kB / 0.5209 GB, free: 1.281 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.287e-06/0.3633, allocations: 81.33 kB / 0.521 GB, free: 1.199 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.819e-05/0.3633, allocations: 4 kB / 0.521 GB, free: 1.195 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.24e-05/0.3633, allocations: 16.55 kB / 0.521 GB, free: 1.176 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.877e-05/0.3634, allocations: 313.1 kB / 0.5213 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.127e-06/0.3634, allocations: 0 / 0.5213 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.881e-06/0.3634, allocations: 2.656 kB / 0.5213 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.417e-05/0.3634, allocations: 64.75 kB / 0.5213 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3634, allocations: 3.938 kB / 0.5213 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.998e-05/0.3635, allocations: 64.45 kB / 0.5214 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.3635, allocations: 31.84 kB / 0.5214 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.3635, allocations: 3.938 kB / 0.5214 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.3635, allocations: 1.125 kB / 0.5214 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.793e-06/0.3635, allocations: 4.734 kB / 0.5214 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.3636, allocations: 0 / 0.5214 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.563e-05/0.3636, allocations: 9.109 kB / 0.5214 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.044e-06/0.3636, allocations: 1.094 kB / 0.5214 GB, free: 0.6719 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.616e-05/0.3636, allocations: 139.3 kB / 0.5216 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.985e-06/0.3637, allocations: 5.219 kB / 0.5216 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.938e-06/0.3637, allocations: 15.61 kB / 0.5216 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3637, allocations: 0.7969 kB / 0.5216 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3637, allocations: 1.062 kB / 0.5216 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.3637, allocations: 0 / 0.5216 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.184e-05/0.3637, allocations: 145.5 kB / 0.5217 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.3638, allocations: 0.75 kB / 0.5217 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3638, allocations: 0 / 0.5217 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.3638, allocations: 1 kB / 0.5217 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.3638, allocations: 5.734 kB / 0.5218 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.3638, allocations: 11.98 kB / 0.5218 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3638, allocations: 0 / 0.5218 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.747e-05/0.3639, allocations: 90.12 kB / 0.5218 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.472e-05/0.3639, allocations: 77.86 kB / 0.5219 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.267e-05/0.3639, allocations: 4.906 kB / 0.5219 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.022e-05/0.3639, allocations: 1.734 kB / 0.5219 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.748e-06/0.3639, allocations: 3.938 kB / 0.5219 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.075e-06/0.3639, allocations: 9.812 kB / 0.5219 GB, free: 96 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.161e-05/0.364, allocations: 76.34 kB / 0.522 GB, free: 20 kB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.364, allocations: 0 / 0.522 GB, free: 20 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002969/0.3643, allocations: 56.17 kB / 0.5221 GB, free: 8 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.0006751/0.3649, allocations: 0.7221 MB / 0.5228 GB, free: 15.35 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.191e-05/0.365, allocations: 62.89 kB / 0.5228 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3651, allocations: 0 / 0.5228 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.246e-05/0.3651, allocations: 62.42 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.0001207/0.3652, allocations: 3.078 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.0003013/0.3655, allocations: 121.8 kB / 0.523 GB, free: 15.08 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.3658, allocations: 0.6755 MB / 0.5237 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.212e-06/0.3658, allocations: 5.375 kB / 0.5237 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.306e-05/0.3658, allocations: 8.625 kB / 0.5237 GB, free: 14.37 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3658, allocations: 0 / 0.5237 GB, free: 14.37 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02034/0.3862, allocations: 2.462 MB / 0.5261 GB, free: 13.72 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.404/7.79, allocations: 5.469 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