Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestBooleanFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions") translateModel(ModelicaTest.Math.TestBooleanFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001265/0.001266, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 226.8 MB / 245.5 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001062/0.001062, allocations: 105.6 kB / 296.7 MB, free: 6.508 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.5372/0.5372, allocations: 44.83 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.89 kB / 465.5 MB, free: 12.14 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3603/0.3615, allocations: 62.02 MB / 0.5151 GB, free: 37.94 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001695/0.3632, allocations: 0.5546 MB / 0.5157 GB, free: 37.59 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008021/0.3641, allocations: 374.9 kB / 0.516 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.073e-05/0.3641, allocations: 0 / 0.516 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.262e-05/0.3641, allocations: 3.938 kB / 0.5161 GB, free: 37.37 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.931e-06/0.3641, allocations: 0 / 0.5161 GB, free: 37.37 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0006424/0.3648, allocations: 163.5 kB / 0.5162 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.947e-05/0.3648, allocations: 4 kB / 0.5162 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.509e-05/0.3649, allocations: 2.938 kB / 0.5162 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.377e-05/0.3649, allocations: 0 / 0.5162 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.763e-05/0.3649, allocations: 7.922 kB / 0.5162 GB, free: 37.29 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.21e-06/0.3649, allocations: 0 / 0.5162 GB, free: 37.29 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002382/0.3652, allocations: 170.6 kB / 0.5164 GB, free: 37.24 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.607e-06/0.3652, allocations: 3.234 kB / 0.5164 GB, free: 37.24 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.044e-05/0.3652, allocations: 0 / 0.5164 GB, free: 37.24 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000216/0.3654, allocations: 154.2 kB / 0.5165 GB, free: 37.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3654, allocations: 0 / 0.5165 GB, free: 37.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.3654, allocations: 4 kB / 0.5165 GB, free: 37.19 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.3654, allocations: 3.938 kB / 0.5165 GB, free: 37.19 MB / 378.7 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.0002901/0.3657, allocations: 376.2 kB / 0.5169 GB, free: 36.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.445e-05/0.3658, allocations: 8.094 kB / 0.5169 GB, free: 36.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.021e-05/0.3658, allocations: 0.9375 kB / 0.5169 GB, free: 36.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.091e-05/0.3659, allocations: 166.9 kB / 0.5171 GB, free: 36.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.3659, allocations: 384 / 0.5171 GB, free: 36.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.668e-06/0.3659, allocations: 384 / 0.5171 GB, free: 36.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.98e-05/0.366, allocations: 32.22 kB / 0.5171 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.366, allocations: 4.188 kB / 0.5171 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.265e-06/0.366, allocations: 3.938 kB / 0.5171 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-06/0.366, allocations: 0 / 0.5171 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.489e-05/0.366, allocations: 2.75 kB / 0.5171 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.578e-05/0.3661, allocations: 145.7 kB / 0.5172 GB, free: 36.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.369e-05/0.3662, allocations: 24.72 kB / 0.5173 GB, free: 36.33 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.216e-05/0.3662, allocations: 7.422 kB / 0.5173 GB, free: 36.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.652e-06/0.3662, allocations: 0 / 0.5173 GB, free: 36.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.3662, allocations: 60.27 kB / 0.5173 GB, free: 36.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.41e-07/0.3662, allocations: 0 / 0.5173 GB, free: 36.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001441/0.3664, allocations: 71.73 kB / 0.5174 GB, free: 36.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.878e-05/0.3664, allocations: 77.11 kB / 0.5175 GB, free: 36.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.241e-05/0.3665, allocations: 89.86 kB / 0.5176 GB, free: 35.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.435e-06/0.3665, allocations: 25.7 kB / 0.5176 GB, free: 35.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.191e-05/0.3665, allocations: 83.08 kB / 0.5177 GB, free: 35.87 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.84e-05/0.3665, allocations: 4.125 kB / 0.5177 GB, free: 35.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.979e-05/0.3665, allocations: 13.66 kB / 0.5177 GB, free: 35.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.426e-05/0.3666, allocations: 317.7 kB / 0.518 GB, free: 35.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.009e-05/0.3666, allocations: 3.375 kB / 0.518 GB, free: 35.53 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.999e-06/0.3666, allocations: 0 / 0.518 GB, free: 35.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.98e-05/0.3666, allocations: 62.83 kB / 0.5181 GB, free: 35.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3666, allocations: 0 / 0.5181 GB, free: 35.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.836e-05/0.3667, allocations: 61.45 kB / 0.5181 GB, free: 35.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.3667, allocations: 32.61 kB / 0.5181 GB, free: 35.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.85e-06/0.3667, allocations: 6.844 kB / 0.5181 GB, free: 35.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.3668, allocations: 11.86 kB / 0.5182 GB, free: 35.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.91e-07/0.3668, allocations: 0 / 0.5182 GB, free: 35.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.3668, allocations: 0 / 0.5182 GB, free: 35.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.425e-05/0.3668, allocations: 3.938 kB / 0.5182 GB, free: 35.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.3668, allocations: 6.969 kB / 0.5182 GB, free: 35.34 MB / 378.7 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.899e-05/0.3669, allocations: 131.5 kB / 0.5183 GB, free: 35.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.576e-06/0.3669, allocations: 2.906 kB / 0.5183 GB, free: 35.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.044e-05/0.3669, allocations: 17.7 kB / 0.5183 GB, free: 35.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.3669, allocations: 0 / 0.5183 GB, free: 35.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.3669, allocations: 3.938 kB / 0.5183 GB, free: 35.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.744e-06/0.3669, allocations: 0 / 0.5183 GB, free: 35.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.525e-05/0.367, allocations: 151.7 kB / 0.5185 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.367, allocations: 0 / 0.5185 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.367, allocations: 0 / 0.5185 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.367, allocations: 0 / 0.5185 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.367, allocations: 6.875 kB / 0.5185 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.92e-07/0.367, allocations: 0 / 0.5185 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.367, allocations: 0 / 0.5185 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002059/0.3672, allocations: 0.6382 MB / 0.5191 GB, free: 34.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.631e-05/0.3672, allocations: 77.11 kB / 0.5192 GB, free: 34.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.261e-05/0.3673, allocations: 2.969 kB / 0.5192 GB, free: 34.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.476e-06/0.3673, allocations: 0 / 0.5192 GB, free: 34.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.379e-05/0.3673, allocations: 0 / 0.5192 GB, free: 34.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-06/0.3673, allocations: 6.938 kB / 0.5192 GB, free: 34.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.382e-05/0.3673, allocations: 75.28 kB / 0.5192 GB, free: 34.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3673, allocations: 0 / 0.5192 GB, free: 34.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003876/0.3677, allocations: 55.92 kB / 0.5193 GB, free: 34.12 MB / 378.7 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.0003827/0.3681, allocations: 198.8 kB / 0.5195 GB, free: 34.01 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.726e-05/0.3682, allocations: 65.03 kB / 0.5196 GB, free: 33.94 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3682, allocations: 0 / 0.5196 GB, free: 33.94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.168e-05/0.3682, allocations: 57.64 kB / 0.5196 GB, free: 33.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001172/0.3683, allocations: 6.781 kB / 0.5196 GB, free: 33.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001862/0.3685, allocations: 175.5 kB / 0.5198 GB, free: 33.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001132/0.3687, allocations: 0.6796 MB / 0.5204 GB, free: 32.97 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.7e-06/0.3687, allocations: 0 / 0.5204 GB, free: 32.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.875e-06/0.3687, allocations: 10.38 kB / 0.5205 GB, free: 32.96 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3687, allocations: 0 / 0.5205 GB, free: 32.96 MB / 378.7 MB Notification: Performance of Templates: time 0.003624/0.3723, allocations: 1.626 MB / 0.522 GB, free: 32.79 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestBooleanFunctions/TestBooleanFunctions.csv","../files/ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches