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: translateModel(ModelicaTest.Math.TestBooleanFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions") translateModel(ModelicaTest.Math.TestBooleanFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 114.4 kB / 17.78 MB, free: 5.246 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.001125/0.001126, allocations: 183 kB / 18.71 MB, free: 4.32 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.499/1.499, 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.2082/0.2082, allocations: 44.19 MB / 336.7 MB, free: 2.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 59.91 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4666/0.4681, allocations: 60.83 MB / 0.5189 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001539/0.4697, allocations: 0.4902 MB / 0.5194 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009022/0.4706, allocations: 368.8 kB / 0.5197 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.918e-05/0.4706, allocations: 0 / 0.5197 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.819e-05/0.4706, allocations: 1.25 kB / 0.5197 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.154e-06/0.4707, allocations: 0 / 0.5197 GB, free: 3.074 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.0008969/0.4716, allocations: 204.4 kB / 0.5199 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.05e-05/0.4716, allocations: 1.547 kB / 0.5199 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.614e-05/0.4717, allocations: 1.906 kB / 0.5199 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.66e-05/0.4717, allocations: 5.406 kB / 0.5199 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.481e-05/0.4717, allocations: 0 / 0.5199 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.152e-06/0.4717, allocations: 0 / 0.5199 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004211/0.4722, allocations: 207.2 kB / 0.5201 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.148e-06/0.4722, allocations: 3.984 kB / 0.5201 GB, free: 2.914 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.268e-05/0.4722, allocations: 5.578 kB / 0.5201 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002619/0.4725, allocations: 152.3 kB / 0.5203 GB, free: 2.867 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.4725, allocations: 4 kB / 0.5203 GB, free: 2.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4725, allocations: 5.375 kB / 0.5203 GB, free: 2.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.4725, allocations: 0 / 0.5203 GB, free: 2.859 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.0003077/0.4728, allocations: 363.6 kB / 0.5206 GB, free: 2.465 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.4729, allocations: 10.72 kB / 0.5206 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.401e-05/0.4729, allocations: 0.9375 kB / 0.5206 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.866e-05/0.473, allocations: 162.8 kB / 0.5208 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.473, allocations: 384 / 0.5208 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-06/0.473, allocations: 1.656 kB / 0.5208 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.719e-05/0.4731, allocations: 42.31 kB / 0.5208 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.465e-06/0.4731, allocations: 192 / 0.5208 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.4731, allocations: 3.938 kB / 0.5208 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.4731, allocations: 1.031 kB / 0.5208 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2e-05/0.4731, allocations: 1.594 kB / 0.5208 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.082e-05/0.4732, allocations: 145.1 kB / 0.521 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.689e-05/0.4733, allocations: 16.3 kB / 0.521 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.342e-05/0.4733, allocations: 7.297 kB / 0.521 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.837e-06/0.4733, allocations: 11.88 kB / 0.521 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.651e-05/0.4734, allocations: 62.05 kB / 0.5211 GB, free: 1.918 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.4734, allocations: 0 / 0.5211 GB, free: 1.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001631/0.4735, allocations: 66.22 kB / 0.5211 GB, free: 1.852 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.4736, allocations: 77.72 kB / 0.5212 GB, free: 1.758 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.303e-05/0.4736, allocations: 90.89 kB / 0.5213 GB, free: 1.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.075e-06/0.4736, allocations: 26.41 kB / 0.5213 GB, free: 1.629 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.266e-05/0.4736, allocations: 81.33 kB / 0.5214 GB, free: 1.547 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.794e-05/0.4737, allocations: 4 kB / 0.5214 GB, free: 1.543 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.395e-05/0.4737, allocations: 16.61 kB / 0.5214 GB, free: 1.523 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.709e-05/0.4737, allocations: 312.6 kB / 0.5217 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.879e-06/0.4738, allocations: 1.25 kB / 0.5217 GB, free: 1.211 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.243e-06/0.4738, allocations: 5.656 kB / 0.5217 GB, free: 1.207 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.188e-05/0.4738, allocations: 59.17 kB / 0.5218 GB, free: 1.137 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4738, allocations: 1.125 kB / 0.5218 GB, free: 1.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.239e-05/0.4739, allocations: 68.52 kB / 0.5219 GB, free: 1.066 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.4739, allocations: 36.23 kB / 0.5219 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.4739, allocations: 0 / 0.5219 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.4739, allocations: 3.938 kB / 0.5219 GB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.114e-06/0.4739, allocations: 1.766 kB / 0.5219 GB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.4739, allocations: 0 / 0.5219 GB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.604e-05/0.474, allocations: 1.094 kB / 0.5219 GB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.474, allocations: 0.6562 kB / 0.5219 GB, free: 1.027 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.826e-05/0.474, allocations: 135.7 kB / 0.522 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.946e-06/0.4741, allocations: 4.688 kB / 0.522 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.124e-05/0.4741, allocations: 20.95 kB / 0.522 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.02e-07/0.4741, allocations: 0 / 0.522 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.4741, allocations: 0 / 0.522 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.4741, allocations: 2.094 kB / 0.522 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.337e-05/0.4742, allocations: 149.1 kB / 0.5222 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.4742, allocations: 0 / 0.5222 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.084e-06/0.4742, allocations: 4.656 kB / 0.5222 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.4742, allocations: 0 / 0.5222 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-06/0.4742, allocations: 5 kB / 0.5222 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.4742, allocations: 5.938 kB / 0.5222 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.4742, allocations: 0 / 0.5222 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.353e-05/0.4743, allocations: 88.02 kB / 0.5223 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.881e-05/0.4743, allocations: 78.73 kB / 0.5224 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.4743, allocations: 6.031 kB / 0.5224 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.406e-06/0.4743, allocations: 0 / 0.5224 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.099e-05/0.4744, allocations: 1.969 kB / 0.5224 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-06/0.4744, allocations: 1.469 kB / 0.5224 GB, free: 472 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.652e-05/0.4744, allocations: 83.25 kB / 0.5225 GB, free: 388 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.082e-06/0.4744, allocations: 0 / 0.5225 GB, free: 388 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003092/0.4747, allocations: 56.8 kB / 0.5225 GB, free: 376 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.0003959/0.4751, allocations: 192.8 kB / 0.5227 GB, free: 260 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.716e-05/0.4752, allocations: 61.34 kB / 0.5228 GB, free: 192 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.4752, allocations: 5.281 kB / 0.5228 GB, free: 188 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.082e-05/0.4752, allocations: 55.88 kB / 0.5228 GB, free: 124 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.4754, allocations: 2.188 kB / 0.5228 GB, free: 124 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001494/0.4755, allocations: 77.88 kB / 0.5229 GB, free: 28 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/0.4758, allocations: 0.6752 MB / 0.5235 GB, free: 15.33 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.44e-06/0.4758, allocations: 0 / 0.5235 GB, free: 15.33 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.02e-05/0.4758, allocations: 8.75 kB / 0.5236 GB, free: 15.32 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4758, allocations: 0 / 0.5236 GB, free: 15.32 MB / 398.1 MB Notification: Performance of Templates: time 0.004576/0.4804, allocations: 1.573 MB / 0.5251 GB, free: 15.12 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestBooleanFunctions/TestBooleanFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestBooleanFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches