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.001627/0.001627, allocations: 114.4 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.001955/0.001955, allocations: 187 kB / 18.71 MB, free: 4.344 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.401/1.401, allocations: 222.9 MB / 242.4 MB, free: 15.16 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.2123/0.2123, allocations: 44.18 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 67.89 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3704/0.3718, allocations: 60.82 MB / 0.5189 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001567/0.3734, allocations: 0.494 MB / 0.5194 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007889/0.3742, allocations: 367.9 kB / 0.5197 GB, free: 3.066 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.662e-05/0.3742, allocations: 1.031 kB / 0.5197 GB, free: 3.066 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.597e-05/0.3742, allocations: 4 kB / 0.5197 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.242e-06/0.3742, allocations: 0 / 0.5197 GB, free: 3.062 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.0007678/0.375, allocations: 196.5 kB / 0.5199 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.456e-05/0.3751, allocations: 1.469 kB / 0.5199 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.733e-05/0.3751, allocations: 10.12 kB / 0.5199 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.433e-05/0.3751, allocations: 5.359 kB / 0.5199 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.911e-05/0.3752, allocations: 0.7969 kB / 0.5199 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.64e-06/0.3752, allocations: 0 / 0.5199 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004062/0.3756, allocations: 201.8 kB / 0.5201 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.753e-06/0.3756, allocations: 0.6562 kB / 0.5201 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.843e-05/0.3756, allocations: 8.906 kB / 0.5201 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002682/0.3759, allocations: 157.3 kB / 0.5203 GB, free: 2.855 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3759, allocations: 0 / 0.5203 GB, free: 2.855 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3759, allocations: 1.281 kB / 0.5203 GB, free: 2.855 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.3759, allocations: 0 / 0.5203 GB, free: 2.855 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.0002956/0.3762, allocations: 364.8 kB / 0.5206 GB, free: 2.461 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.3763, allocations: 9.031 kB / 0.5206 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.4e-05/0.3763, allocations: 0.9375 kB / 0.5206 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.185e-05/0.3764, allocations: 166.8 kB / 0.5208 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.3764, allocations: 4.375 kB / 0.5208 GB, free: 2.258 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.935e-06/0.3764, allocations: 1.406 kB / 0.5208 GB, free: 2.258 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.902e-05/0.3765, allocations: 34.09 kB / 0.5208 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.3765, allocations: 1.219 kB / 0.5208 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.956e-06/0.3765, allocations: 3.938 kB / 0.5208 GB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.3765, allocations: 0.6094 kB / 0.5208 GB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.893e-05/0.3765, allocations: 6.094 kB / 0.5208 GB, free: 2.215 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.964e-05/0.3766, allocations: 144.5 kB / 0.521 GB, free: 2.027 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.358e-05/0.3767, allocations: 21.67 kB / 0.521 GB, free: 2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.205e-05/0.3767, allocations: 9.859 kB / 0.521 GB, free: 1.988 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.629e-06/0.3767, allocations: 4.734 kB / 0.521 GB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.3767, allocations: 57.42 kB / 0.5211 GB, free: 1.914 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3767, allocations: 0 / 0.5211 GB, free: 1.914 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001536/0.3769, allocations: 69.44 kB / 0.5211 GB, free: 1.844 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.798e-05/0.3769, allocations: 78.56 kB / 0.5212 GB, free: 1.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.208e-05/0.377, allocations: 95.7 kB / 0.5213 GB, free: 1.648 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.252e-06/0.377, allocations: 29.7 kB / 0.5213 GB, free: 1.613 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.07e-05/0.377, allocations: 80.14 kB / 0.5214 GB, free: 1.531 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.879e-05/0.377, allocations: 0.9375 kB / 0.5214 GB, free: 1.531 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.459e-05/0.377, allocations: 12.64 kB / 0.5214 GB, free: 1.516 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.565e-05/0.3771, allocations: 312.8 kB / 0.5217 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.618e-06/0.3771, allocations: 0.9375 kB / 0.5217 GB, free: 1.203 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.831e-06/0.3771, allocations: 1.562 kB / 0.5217 GB, free: 1.203 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.412e-05/0.3772, allocations: 65.05 kB / 0.5218 GB, free: 1.129 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.3772, allocations: 3.938 kB / 0.5218 GB, free: 1.125 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.222e-05/0.3772, allocations: 67.34 kB / 0.5219 GB, free: 1.055 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/0.3773, allocations: 31.91 kB / 0.5219 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3773, allocations: 1.781 kB / 0.5219 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.3773, allocations: 3.938 kB / 0.5219 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.91e-07/0.3773, allocations: 0 / 0.5219 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.3773, allocations: 1.75 kB / 0.5219 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.443e-05/0.3773, allocations: 0 / 0.5219 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.3773, allocations: 5.375 kB / 0.5219 GB, free: 1.016 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.192e-05/0.3774, allocations: 134.9 kB / 0.522 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.655e-06/0.3774, allocations: 1.766 kB / 0.522 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.16e-05/0.3774, allocations: 11.02 kB / 0.522 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.3774, allocations: 1.859 kB / 0.522 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3774, allocations: 0 / 0.522 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.3774, allocations: 1.062 kB / 0.522 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.516e-05/0.3775, allocations: 149.1 kB / 0.5222 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.3775, allocations: 0 / 0.5222 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.283e-06/0.3775, allocations: 5.438 kB / 0.5222 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.3775, allocations: 4.656 kB / 0.5222 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.984e-06/0.3775, allocations: 4.938 kB / 0.5222 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3775, allocations: 0.6562 kB / 0.5222 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3775, allocations: 0 / 0.5222 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.981e-05/0.3776, allocations: 97.25 kB / 0.5223 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.49e-05/0.3776, allocations: 77.81 kB / 0.5224 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.3776, allocations: 5.812 kB / 0.5224 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.316e-06/0.3777, allocations: 5.094 kB / 0.5224 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.498e-06/0.3777, allocations: 1.375 kB / 0.5224 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-06/0.3777, allocations: 0.75 kB / 0.5224 GB, free: 460 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.31e-05/0.3777, allocations: 80.09 kB / 0.5225 GB, free: 380 kB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3777, allocations: 0 / 0.5225 GB, free: 380 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002958/0.378, allocations: 53.06 kB / 0.5225 GB, free: 372 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.0003735/0.3784, allocations: 199.2 kB / 0.5227 GB, free: 248 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.102e-05/0.3785, allocations: 62.17 kB / 0.5228 GB, free: 180 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3785, allocations: 1.469 kB / 0.5228 GB, free: 180 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.121e-05/0.3785, allocations: 62.86 kB / 0.5228 GB, free: 108 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001264/0.3787, allocations: 2.188 kB / 0.5228 GB, free: 108 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001551/0.3788, allocations: 74.66 kB / 0.5229 GB, free: 16 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.3791, allocations: 0.6746 MB / 0.5235 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.041e-06/0.3791, allocations: 0.5156 kB / 0.5235 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.241e-05/0.3791, allocations: 13.81 kB / 0.5236 GB, free: 15.3 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3791, allocations: 0 / 0.5236 GB, free: 15.3 MB / 398.1 MB Notification: Performance of Templates: time 0.004765/0.3839, allocations: 1.579 MB / 0.5251 GB, free: 15.11 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