Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Math.TestBooleanFunctions") translateModel(ModelicaTest.Math.TestBooleanFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00152/0.00152, allocations: 202.1 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 226.5 MB / 243.1 MB, free: 12.54 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007379/0.000738, allocations: 103 kB / 295.1 MB, free: 4.457 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1786/0.1786, allocations: 44.84 MB / 392 MB, free: 11.36 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002322/0.0002322, allocations: 8 kB / 464.7 MB, free: 68.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09077/0.09102, allocations: 62.95 MB / 0.5153 GB, free: 5.117 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.0004694/0.09152, allocations: 212.6 kB / 0.5155 GB, free: 4.906 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005657/0.0921, allocations: 356.7 kB / 0.5159 GB, free: 4.559 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.179e-05/0.09212, allocations: 0 / 0.5159 GB, free: 4.559 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 7.855e-06/0.09214, allocations: 3.938 kB / 0.5159 GB, free: 4.555 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.179e-06/0.09215, allocations: 0 / 0.5159 GB, free: 4.555 MB / 346.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.0005237/0.09268, allocations: 154.8 kB / 0.516 GB, free: 4.406 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.388e-05/0.09271, allocations: 4 kB / 0.516 GB, free: 4.402 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.613e-05/0.09274, allocations: 0 / 0.516 GB, free: 4.402 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.088e-05/0.09276, allocations: 0 / 0.516 GB, free: 4.402 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.92e-05/0.09278, allocations: 0 / 0.516 GB, free: 4.402 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.388e-06/0.09279, allocations: 3.938 kB / 0.516 GB, free: 4.398 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002211/0.09302, allocations: 171.7 kB / 0.5162 GB, free: 4.23 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.01e-06/0.09303, allocations: 4 kB / 0.5162 GB, free: 4.227 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.916e-05/0.09306, allocations: 29.69 kB / 0.5162 GB, free: 4.191 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.09318, allocations: 95.83 kB / 0.5163 GB, free: 4.098 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.09319, allocations: 0 / 0.5163 GB, free: 4.098 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.0932, allocations: 3.984 kB / 0.5163 GB, free: 4.094 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.09321, allocations: 0 / 0.5163 GB, free: 4.094 MB / 346.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.0002084/0.09342, allocations: 361.1 kB / 0.5167 GB, free: 3.688 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.966e-05/0.09345, allocations: 15.95 kB / 0.5167 GB, free: 3.672 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.619e-05/0.09348, allocations: 0 / 0.5167 GB, free: 3.672 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.726e-05/0.09354, allocations: 167 kB / 0.5168 GB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.09355, allocations: 0 / 0.5168 GB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.234e-06/0.09357, allocations: 4 kB / 0.5168 GB, free: 3.465 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.977e-05/0.09363, allocations: 25.7 kB / 0.5169 GB, free: 3.434 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.921e-06/0.09364, allocations: 0 / 0.5169 GB, free: 3.434 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.612e-06/0.09365, allocations: 3.938 kB / 0.5169 GB, free: 3.43 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.09366, allocations: 4 kB / 0.5169 GB, free: 3.426 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.454e-05/0.09368, allocations: 11.94 kB / 0.5169 GB, free: 3.414 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.868e-05/0.09377, allocations: 149.6 kB / 0.517 GB, free: 3.219 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.893e-05/0.0938, allocations: 26.55 kB / 0.517 GB, free: 3.184 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.217e-06/0.09382, allocations: 4.859 kB / 0.517 GB, free: 3.176 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.092e-06/0.09383, allocations: 0 / 0.517 GB, free: 3.176 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.341e-05/0.09386, allocations: 56.27 kB / 0.5171 GB, free: 3.105 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.09386, allocations: 0 / 0.5171 GB, free: 3.105 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001192/0.09398, allocations: 67.45 kB / 0.5172 GB, free: 3.027 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.519e-05/0.09402, allocations: 85.17 kB / 0.5172 GB, free: 2.926 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.551e-05/0.09404, allocations: 93.86 kB / 0.5173 GB, free: 2.824 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.18e-06/0.09405, allocations: 25.7 kB / 0.5174 GB, free: 2.793 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.476e-06/0.09406, allocations: 80.14 kB / 0.5174 GB, free: 2.711 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.109e-05/0.09408, allocations: 0 / 0.5174 GB, free: 2.711 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.694e-06/0.09408, allocations: 0 / 0.5174 GB, free: 2.711 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.562e-05/0.09412, allocations: 314.8 kB / 0.5177 GB, free: 2.395 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.332e-06/0.09414, allocations: 0 / 0.5177 GB, free: 2.395 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.819e-06/0.09414, allocations: 4 kB / 0.5177 GB, free: 2.391 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.759e-05/0.09417, allocations: 33.75 kB / 0.5178 GB, free: 2.352 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.09417, allocations: 0 / 0.5178 GB, free: 2.352 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.364e-05/0.09422, allocations: 63.36 kB / 0.5178 GB, free: 2.277 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.09425, allocations: 32.2 kB / 0.5179 GB, free: 2.242 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.09426, allocations: 0 / 0.5179 GB, free: 2.242 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.508e-06/0.09427, allocations: 4 kB / 0.5179 GB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.09427, allocations: 0 / 0.5179 GB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.09428, allocations: 0 / 0.5179 GB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.481e-05/0.0943, allocations: 0 / 0.5179 GB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.09431, allocations: 7.922 kB / 0.5179 GB, free: 2.23 MB / 346.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.379e-05/0.09436, allocations: 143.6 kB / 0.518 GB, free: 2.074 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.562e-06/0.09437, allocations: 3.953 kB / 0.518 GB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.594e-06/0.09438, allocations: 7.078 kB / 0.518 GB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.09439, allocations: 0 / 0.518 GB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.0944, allocations: 0 / 0.518 GB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.0944, allocations: 0 / 0.518 GB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.466e-05/0.09445, allocations: 149.7 kB / 0.5182 GB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.09446, allocations: 3.938 kB / 0.5182 GB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.09446, allocations: 0 / 0.5182 GB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.09447, allocations: 7.953 kB / 0.5182 GB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.9e-06/0.09448, allocations: 0 / 0.5182 GB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.09448, allocations: 0 / 0.5182 GB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.09449, allocations: 0 / 0.5182 GB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.488e-05/0.09455, allocations: 90.83 kB / 0.5183 GB, free: 1.746 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.176e-05/0.09456, allocations: 77.11 kB / 0.5183 GB, free: 1.652 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.043e-05/0.09458, allocations: 11.89 kB / 0.5183 GB, free: 1.641 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.546e-06/0.09459, allocations: 4.031 kB / 0.5184 GB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.404e-05/0.09461, allocations: 11.91 kB / 0.5184 GB, free: 1.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/0.09462, allocations: 0 / 0.5184 GB, free: 1.625 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.868e-06/0.09463, allocations: 75.28 kB / 0.5184 GB, free: 1.551 MB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.09464, allocations: 0 / 0.5184 GB, free: 1.551 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002431/0.09489, allocations: 59.98 kB / 0.5185 GB, free: 1.492 MB / 346.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000288/0.09518, allocations: 188 kB / 0.5187 GB, free: 1.305 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.355e-05/0.09525, allocations: 63.39 kB / 0.5187 GB, free: 1.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.09526, allocations: 0 / 0.5187 GB, free: 1.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.434e-05/0.09528, allocations: 55.41 kB / 0.5188 GB, free: 1.164 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001015/0.09539, allocations: 0 / 0.5188 GB, free: 1.164 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001156/0.09551, allocations: 112.3 kB / 0.5189 GB, free: 1.02 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.663e-05/0.09559, allocations: 0.6692 MB / 0.5195 GB, free: 332 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.362e-06/0.0956, allocations: 11.44 kB / 0.5196 GB, free: 320 kB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.09561, allocations: 4.125 kB / 0.5196 GB, free: 316 kB / 346.7 MB Notification: Performance of Templates: time 0.002555/0.09817, allocations: 1.568 MB / 0.5211 GB, free: 14.73 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestBooleanFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches