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.001284/0.001284, allocations: 113.3 kB / 18.45 MB, free: 4.602 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.001415/0.001415, allocations: 181.1 kB / 19.38 MB, free: 3.684 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.328/1.328, allocations: 222.9 MB / 243.1 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.2027/0.2027, allocations: 44.18 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 63.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3714/0.3726, allocations: 60.82 MB / 0.5195 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001475/0.3741, allocations: 0.4973 MB / 0.52 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006959/0.3748, allocations: 368.8 kB / 0.5204 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.151e-05/0.3748, allocations: 1.125 kB / 0.5204 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.594e-05/0.3748, allocations: 0 / 0.5204 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.349e-06/0.3749, allocations: 0 / 0.5204 GB, free: 3.078 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.0006749/0.3755, allocations: 200.5 kB / 0.5206 GB, free: 3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.888e-05/0.3756, allocations: 5.031 kB / 0.5206 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.233e-05/0.3756, allocations: 1.781 kB / 0.5206 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.957e-06/0.3756, allocations: 5.219 kB / 0.5206 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.592e-05/0.3757, allocations: 1.984 kB / 0.5206 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.228e-06/0.3757, allocations: 4 kB / 0.5206 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003784/0.3761, allocations: 205.3 kB / 0.5208 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.861e-06/0.3761, allocations: 0 / 0.5208 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.463e-05/0.3761, allocations: 1.906 kB / 0.5208 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002144/0.3763, allocations: 152.9 kB / 0.5209 GB, free: 2.875 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.3763, allocations: 0 / 0.5209 GB, free: 2.875 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3763, allocations: 1.469 kB / 0.5209 GB, free: 2.875 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.3763, allocations: 0 / 0.5209 GB, free: 2.875 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.0002171/0.3766, allocations: 368.2 kB / 0.5213 GB, free: 2.477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.906e-05/0.3766, allocations: 9.75 kB / 0.5213 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.114e-05/0.3766, allocations: 8.875 kB / 0.5213 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.611e-05/0.3767, allocations: 163 kB / 0.5215 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.683e-06/0.3767, allocations: 384 / 0.5215 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.418e-06/0.3767, allocations: 1.219 kB / 0.5215 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.782e-05/0.3768, allocations: 30.45 kB / 0.5215 GB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.932e-06/0.3768, allocations: 192 / 0.5215 GB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.853e-06/0.3768, allocations: 5.094 kB / 0.5215 GB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.906e-06/0.3768, allocations: 0 / 0.5215 GB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.416e-05/0.3768, allocations: 1.672 kB / 0.5215 GB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.773e-05/0.3769, allocations: 153.2 kB / 0.5216 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.262e-05/0.3769, allocations: 24.31 kB / 0.5217 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.1e-05/0.3769, allocations: 6.906 kB / 0.5217 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.328e-06/0.3769, allocations: 0.9688 kB / 0.5217 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.118e-05/0.377, allocations: 58.17 kB / 0.5217 GB, free: 1.934 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.377, allocations: 0 / 0.5217 GB, free: 1.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001163/0.3771, allocations: 69.48 kB / 0.5218 GB, free: 1.863 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.17e-05/0.3771, allocations: 82.14 kB / 0.5219 GB, free: 1.766 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.859e-05/0.3771, allocations: 94.52 kB / 0.522 GB, free: 1.664 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.64e-06/0.3771, allocations: 29.64 kB / 0.522 GB, free: 1.629 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.598e-06/0.3772, allocations: 85.16 kB / 0.5221 GB, free: 1.543 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.315e-05/0.3772, allocations: 0 / 0.5221 GB, free: 1.543 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.039e-05/0.3772, allocations: 12.58 kB / 0.5221 GB, free: 1.527 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.493e-05/0.3772, allocations: 313.3 kB / 0.5224 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.365e-06/0.3773, allocations: 5.156 kB / 0.5224 GB, free: 1.211 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.999e-06/0.3773, allocations: 1 kB / 0.5224 GB, free: 1.211 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.071e-05/0.3773, allocations: 64.81 kB / 0.5225 GB, free: 1.137 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3773, allocations: 0 / 0.5225 GB, free: 1.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.098e-05/0.3774, allocations: 63.92 kB / 0.5225 GB, free: 1.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.3774, allocations: 35.62 kB / 0.5225 GB, free: 1.039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.3774, allocations: 0 / 0.5225 GB, free: 1.039 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.3774, allocations: 9.125 kB / 0.5226 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.3774, allocations: 0.5156 kB / 0.5226 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.946e-06/0.3774, allocations: 4.094 kB / 0.5226 GB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.274e-05/0.3774, allocations: 1.641 kB / 0.5226 GB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-06/0.3775, allocations: 1.188 kB / 0.5226 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 3.947e-05/0.3775, allocations: 134.5 kB / 0.5227 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.145e-06/0.3775, allocations: 2.641 kB / 0.5227 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.654e-06/0.3775, allocations: 11.02 kB / 0.5227 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.3775, allocations: 0.7031 kB / 0.5227 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.3775, allocations: 0 / 0.5227 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3775, allocations: 5.266 kB / 0.5227 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.477e-05/0.3776, allocations: 153.3 kB / 0.5229 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3776, allocations: 0 / 0.5229 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.21e-07/0.3776, allocations: 1.219 kB / 0.5229 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.3776, allocations: 0.7969 kB / 0.5229 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.688e-06/0.3776, allocations: 4.875 kB / 0.5229 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.3776, allocations: 0 / 0.5229 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3776, allocations: 1.062 kB / 0.5229 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.334e-05/0.3777, allocations: 96.08 kB / 0.523 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.206e-05/0.3777, allocations: 79.14 kB / 0.523 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.148e-05/0.3777, allocations: 5.75 kB / 0.523 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.055e-06/0.3777, allocations: 0 / 0.523 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.154e-05/0.3778, allocations: 0.875 kB / 0.523 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.3778, allocations: 5.812 kB / 0.523 GB, free: 472 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.056e-05/0.3778, allocations: 75.28 kB / 0.5231 GB, free: 396 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3778, allocations: 0 / 0.5231 GB, free: 396 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002675/0.3781, allocations: 53.55 kB / 0.5232 GB, free: 388 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.0003149/0.3784, allocations: 199.6 kB / 0.5234 GB, free: 264 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 6.333e-05/0.3785, allocations: 62.14 kB / 0.5234 GB, free: 196 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3785, allocations: 0 / 0.5234 GB, free: 196 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.793e-05/0.3785, allocations: 60.33 kB / 0.5235 GB, free: 128 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001145/0.3786, allocations: 1.797 kB / 0.5235 GB, free: 128 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001444/0.3788, allocations: 107.9 kB / 0.5236 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.379, allocations: 0.6751 MB / 0.5242 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.117e-05/0.379, allocations: 8.5 kB / 0.5242 GB, free: 15.29 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.379, allocations: 0 / 0.5242 GB, free: 15.29 MB / 398.1 MB Notification: Performance of Templates: time 0.003343/0.3824, allocations: 1.536 MB / 0.5257 GB, free: 15.14 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/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