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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001723/0.001723, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002015/0.002016, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2469/0.2469, allocations: 46.11 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002759/0.002759, allocations: 77.5 kB / 417.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.165/0.1678, allocations: 62.46 MB / 480.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001719/0.1695, allocations: 483.6 kB / 480.6 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008812/0.1704, allocations: 361.7 kB / 480.9 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.536e-05/0.1704, allocations: 0 / 480.9 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.734e-05/0.1705, allocations: 0 / 480.9 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.201e-06/0.1705, allocations: 4 kB / 480.9 MB, free: 4.375 MB / 350.1 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.0008286/0.1713, allocations: 207.1 kB / 481.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.901e-05/0.1714, allocations: 7.984 kB / 481.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.283e-05/0.1714, allocations: 0 / 481.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.381e-05/0.1714, allocations: 3.938 kB / 481.2 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.338e-05/0.1715, allocations: 0 / 481.2 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.134e-06/0.1715, allocations: 3.938 kB / 481.2 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003034/0.1718, allocations: 159.7 kB / 481.3 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.852e-06/0.1718, allocations: 4 kB / 481.3 MB, free: 4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.963e-05/0.1718, allocations: 0 / 481.3 MB, free: 4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002559/0.1721, allocations: 155.7 kB / 481.5 MB, free: 3.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1721, allocations: 3.938 kB / 481.5 MB, free: 3.844 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1721, allocations: 4 kB / 481.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.1721, allocations: 3.984 kB / 481.5 MB, free: 3.836 MB / 350.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.0004373/0.1726, allocations: 369.2 kB / 481.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.1726, allocations: 12.03 kB / 481.9 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.314e-05/0.1727, allocations: 0.9375 kB / 481.9 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.1728, allocations: 160.4 kB / 482 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.1728, allocations: 384 / 482 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.248e-06/0.1728, allocations: 4.359 kB / 482 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.63e-05/0.1729, allocations: 34.27 kB / 482 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.1729, allocations: 4.188 kB / 482.1 MB, free: 3.164 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.1729, allocations: 3.938 kB / 482.1 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1729, allocations: 0 / 482.1 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.23e-05/0.173, allocations: 7.922 kB / 482.1 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001482/0.1731, allocations: 149.7 kB / 482.2 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.936e-05/0.1732, allocations: 14.58 kB / 482.2 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.704e-05/0.1732, allocations: 12.95 kB / 482.2 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.515e-06/0.1732, allocations: 0 / 482.2 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.032e-05/0.1733, allocations: 56.27 kB / 482.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.1733, allocations: 0 / 482.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001827/0.1735, allocations: 75.27 kB / 482.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.204e-05/0.1735, allocations: 77.11 kB / 482.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.964e-05/0.1736, allocations: 89.86 kB / 482.5 MB, free: 2.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.1736, allocations: 25.83 kB / 482.6 MB, free: 2.539 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.889e-05/0.1736, allocations: 84.14 kB / 482.6 MB, free: 2.453 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.207e-05/0.1737, allocations: 4 kB / 482.6 MB, free: 2.449 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.888e-05/0.1737, allocations: 9.719 kB / 482.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.1739, allocations: 314.8 kB / 483 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.369e-05/0.1739, allocations: 8 kB / 483 MB, free: 2.109 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.59e-06/0.1739, allocations: 0 / 483 MB, free: 2.109 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.426e-05/0.1739, allocations: 60.27 kB / 483 MB, free: 2.035 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.174, allocations: 8 kB / 483 MB, free: 2.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.431e-05/0.174, allocations: 59.34 kB / 483.1 MB, free: 1.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.668e-05/0.1741, allocations: 37.69 kB / 483.1 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1741, allocations: 0 / 483.1 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.1741, allocations: 3.938 kB / 483.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.1741, allocations: 0 / 483.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.608e-06/0.1741, allocations: 0 / 483.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.481e-05/0.1741, allocations: 0 / 483.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.1742, allocations: 4 kB / 483.1 MB, free: 1.906 MB / 350.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 9.922e-05/0.1743, allocations: 139.6 kB / 483.3 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.444e-06/0.1743, allocations: 0 / 483.3 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.197e-05/0.1743, allocations: 15 kB / 483.3 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.1743, allocations: 0 / 483.3 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1743, allocations: 3.984 kB / 483.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.1743, allocations: 0 / 483.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001024/0.1744, allocations: 141.7 kB / 483.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.1744, allocations: 0 / 483.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1744, allocations: 0 / 483.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1744, allocations: 4 kB / 483.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.385e-06/0.1745, allocations: 7.938 kB / 483.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1745, allocations: 0 / 483.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.1745, allocations: 3.938 kB / 483.4 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001059/0.1746, allocations: 90.83 kB / 483.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.189e-05/0.1746, allocations: 77.11 kB / 483.6 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.1746, allocations: 3.938 kB / 483.6 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.23e-05/0.1747, allocations: 7.984 kB / 483.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.123e-05/0.1747, allocations: 32 / 483.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-06/0.1747, allocations: 8 kB / 483.6 MB, free: 1.309 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.655e-05/0.1747, allocations: 75.28 kB / 483.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1747, allocations: 0 / 483.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00028/0.175, allocations: 52 kB / 483.8 MB, free: 1.184 MB / 350.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.0004533/0.1755, allocations: 184.1 kB / 483.9 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001104/0.1756, allocations: 67.34 kB / 484 MB, free: 0.918 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1756, allocations: 4 kB / 484 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.554e-05/0.1757, allocations: 55.39 kB / 484.1 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001259/0.1758, allocations: 4 kB / 484.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001961/0.176, allocations: 88.78 kB / 484.1 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.1763, allocations: 0.669 MB / 484.8 MB, free: 36 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.621e-06/0.1763, allocations: 0 / 484.8 MB, free: 36 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.225e-05/0.1763, allocations: 11.44 kB / 484.8 MB, free: 28 kB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1763, allocations: 128 / 484.8 MB, free: 28 kB / 350.1 MB Notification: Performance of Templates: time 0.004762/0.1811, allocations: 1.576 MB / 486.4 MB, free: 14.45 MB / 366.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestBooleanFunctions/TestBooleanFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches