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.001221/0.001221, allocations: 118.4 kB / 17.78 MB, free: 5.254 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.001211/0.001211, allocations: 183 kB / 18.72 MB, free: 4.332 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.403/1.403, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2562/0.2562, allocations: 44.2 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 67.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.3618, allocations: 60.82 MB / 0.5184 GB, free: 3.535 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001416/0.3632, allocations: 0.4935 MB / 0.5189 GB, free: 3.234 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007072/0.3639, allocations: 372 kB / 0.5192 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.429e-05/0.3639, allocations: 5.25 kB / 0.5193 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.63e-05/0.3639, allocations: 0 / 0.5193 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.619e-06/0.3639, allocations: 0 / 0.5193 GB, free: 3.008 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.0007153/0.3647, allocations: 200.5 kB / 0.5194 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.271e-05/0.3647, allocations: 1.25 kB / 0.5194 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.549e-05/0.3647, allocations: 2.125 kB / 0.5194 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.238e-05/0.3647, allocations: 9.266 kB / 0.5195 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.778e-05/0.3648, allocations: 0 / 0.5195 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.27e-06/0.3648, allocations: 0 / 0.5195 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003377/0.3651, allocations: 207.2 kB / 0.5197 GB, free: 2.852 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.123e-06/0.3651, allocations: 0 / 0.5197 GB, free: 2.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.602e-05/0.3651, allocations: 5.219 kB / 0.5197 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002282/0.3654, allocations: 148.1 kB / 0.5198 GB, free: 2.812 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3654, allocations: 0.6094 kB / 0.5198 GB, free: 2.812 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3654, allocations: 0 / 0.5198 GB, free: 2.812 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.3654, allocations: 3.938 kB / 0.5198 GB, free: 2.809 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.000282/0.3656, allocations: 373.8 kB / 0.5202 GB, free: 2.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.3657, allocations: 9.906 kB / 0.5202 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.932e-05/0.3657, allocations: 31.88 kB / 0.5202 GB, free: 2.367 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.104e-05/0.3657, allocations: 0.9375 kB / 0.5202 GB, free: 2.367 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.685e-05/0.3658, allocations: 161.7 kB / 0.5204 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.3658, allocations: 5.438 kB / 0.5204 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.11e-05/0.3658, allocations: 1.781 kB / 0.5204 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.77e-05/0.3659, allocations: 29.56 kB / 0.5204 GB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.3659, allocations: 5.406 kB / 0.5204 GB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-06/0.3659, allocations: 0 / 0.5204 GB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.3659, allocations: 0 / 0.5204 GB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.967e-05/0.3659, allocations: 2.047 kB / 0.5204 GB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.908e-05/0.366, allocations: 156.1 kB / 0.5205 GB, free: 1.934 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.712e-05/0.3661, allocations: 22.17 kB / 0.5206 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.135e-05/0.3661, allocations: 4.859 kB / 0.5206 GB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.728e-06/0.3661, allocations: 2.078 kB / 0.5206 GB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.3661, allocations: 58.62 kB / 0.5206 GB, free: 1.828 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.3661, allocations: 0 / 0.5206 GB, free: 1.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000148/0.3663, allocations: 72.84 kB / 0.5207 GB, free: 1.754 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.291e-05/0.3663, allocations: 77.23 kB / 0.5208 GB, free: 1.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.615e-05/0.3663, allocations: 95.7 kB / 0.5209 GB, free: 1.559 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.741e-06/0.3663, allocations: 25.7 kB / 0.5209 GB, free: 1.527 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.358e-06/0.3663, allocations: 84.08 kB / 0.521 GB, free: 1.441 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.303e-05/0.3663, allocations: 0.9688 kB / 0.521 GB, free: 1.441 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.271e-05/0.3664, allocations: 13.55 kB / 0.521 GB, free: 1.426 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.616e-05/0.3664, allocations: 311.6 kB / 0.5213 GB, free: 1.113 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.386e-06/0.3664, allocations: 1.156 kB / 0.5213 GB, free: 1.113 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.199e-06/0.3664, allocations: 1.375 kB / 0.5213 GB, free: 1.113 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.054e-05/0.3664, allocations: 68.69 kB / 0.5213 GB, free: 1.035 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3664, allocations: 0 / 0.5213 GB, free: 1.035 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.867e-05/0.3665, allocations: 67.8 kB / 0.5214 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.3665, allocations: 32.25 kB / 0.5214 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3665, allocations: 5.281 kB / 0.5215 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.3665, allocations: 0 / 0.5215 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.252e-06/0.3665, allocations: 0.7031 kB / 0.5215 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.3665, allocations: 1.312 kB / 0.5215 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.821e-05/0.3666, allocations: 7.984 kB / 0.5215 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.3666, allocations: 1.938 kB / 0.5215 GB, free: 0.9219 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.608e-05/0.3666, allocations: 137.6 kB / 0.5216 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.956e-06/0.3666, allocations: 2.266 kB / 0.5216 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.608e-06/0.3666, allocations: 11.77 kB / 0.5216 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.3666, allocations: 1 kB / 0.5216 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.3666, allocations: 0 / 0.5216 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.3666, allocations: 1.25 kB / 0.5216 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.904e-05/0.3667, allocations: 145.5 kB / 0.5217 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3667, allocations: 4 kB / 0.5218 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.473e-06/0.3667, allocations: 3.984 kB / 0.5218 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.3667, allocations: 2.047 kB / 0.5218 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.3667, allocations: 3.938 kB / 0.5218 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.3667, allocations: 2.047 kB / 0.5218 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3667, allocations: 0 / 0.5218 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.449e-05/0.3668, allocations: 92.16 kB / 0.5219 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.184e-05/0.3668, allocations: 78.45 kB / 0.5219 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.257e-05/0.3668, allocations: 10.03 kB / 0.5219 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.596e-06/0.3668, allocations: 0 / 0.5219 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.556e-05/0.3668, allocations: 1.984 kB / 0.5219 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.3668, allocations: 4 kB / 0.5219 GB, free: 364 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.039e-05/0.3668, allocations: 76.72 kB / 0.522 GB, free: 288 kB / 382.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3668, allocations: 0 / 0.522 GB, free: 288 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002953/0.3671, allocations: 56.86 kB / 0.5221 GB, free: 276 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.0006411/0.3678, allocations: 0.7264 MB / 0.5228 GB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001008/0.3679, allocations: 66.42 kB / 0.5228 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-06/0.3679, allocations: 0 / 0.5228 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.863e-05/0.3679, allocations: 55.45 kB / 0.5229 GB, free: 15.47 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000115/0.368, allocations: 6.312 kB / 0.5229 GB, free: 15.47 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003146/0.3683, allocations: 123.1 kB / 0.523 GB, free: 15.33 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.3686, allocations: 0.6746 MB / 0.5237 GB, free: 14.63 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.65e-06/0.3686, allocations: 1.156 kB / 0.5237 GB, free: 14.63 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.496e-05/0.3686, allocations: 8.562 kB / 0.5237 GB, free: 14.62 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3686, allocations: 0 / 0.5237 GB, free: 14.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02466/0.3933, allocations: 2.469 MB / 0.5261 GB, free: 13.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.832/8.226, allocations: 12.22 kB / 0.5261 GB, free: 13.94 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