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.001041/0.001041, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001021/0.001021, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2199/0.2199, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 78.09 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1178, allocations: 62.44 MB / 481.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001733/0.1195, allocations: 494.8 kB / 481.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008202/0.1204, allocations: 365.6 kB / 482.3 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.203e-05/0.1204, allocations: 7.938 kB / 482.3 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.18e-05/0.1204, allocations: 0 / 482.3 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.761e-06/0.1204, allocations: 0 / 482.3 MB, free: 3.699 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.0007401/0.1212, allocations: 195.5 kB / 482.5 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.694e-05/0.1212, allocations: 3.984 kB / 482.5 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.424e-05/0.1213, allocations: 3.984 kB / 482.5 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.461e-05/0.1213, allocations: 7.938 kB / 482.5 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.997e-05/0.1213, allocations: 0 / 482.5 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.52e-06/0.1213, allocations: 0 / 482.5 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003255/0.1217, allocations: 195.6 kB / 482.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.415e-06/0.1217, allocations: 3.984 kB / 482.7 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.202e-05/0.1217, allocations: 4 kB / 482.7 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002873/0.122, allocations: 139.8 kB / 482.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.122, allocations: 0 / 482.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.122, allocations: 3.938 kB / 482.8 MB, free: 3.152 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.122, allocations: 0 / 482.8 MB, free: 3.152 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.0003455/0.1224, allocations: 373.2 kB / 483.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.1224, allocations: 8.031 kB / 483.2 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.086e-05/0.1225, allocations: 4.922 kB / 483.2 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.679e-05/0.1226, allocations: 164.4 kB / 483.4 MB, free: 2.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.1226, allocations: 384 / 483.4 MB, free: 2.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.867e-06/0.1226, allocations: 4.375 kB / 483.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.768e-05/0.1227, allocations: 26.27 kB / 483.4 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.931e-06/0.1227, allocations: 192 / 483.4 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.1227, allocations: 7.938 kB / 483.4 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.1227, allocations: 4 kB / 483.4 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.632e-05/0.1227, allocations: 0 / 483.4 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001236/0.1229, allocations: 145.7 kB / 483.6 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.132e-05/0.1229, allocations: 26.55 kB / 483.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.421e-05/0.1229, allocations: 4.859 kB / 483.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.296e-06/0.1229, allocations: 0 / 483.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.258e-05/0.123, allocations: 60.27 kB / 483.7 MB, free: 2.164 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.123, allocations: 0 / 483.7 MB, free: 2.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001481/0.1232, allocations: 71.33 kB / 483.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.1232, allocations: 85.23 kB / 483.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.683e-05/0.1233, allocations: 89.86 kB / 483.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.1233, allocations: 25.7 kB / 483.9 MB, free: 1.852 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.499e-05/0.1233, allocations: 80.14 kB / 484 MB, free: 1.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/0.1233, allocations: 0 / 484 MB, free: 1.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-05/0.1234, allocations: 17.72 kB / 484 MB, free: 1.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.1235, allocations: 314.8 kB / 484.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.137e-06/0.1235, allocations: 0 / 484.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.406e-06/0.1235, allocations: 7.984 kB / 484.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.445e-05/0.1236, allocations: 60.27 kB / 484.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1236, allocations: 0 / 484.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.202e-05/0.1236, allocations: 67.34 kB / 484.5 MB, free: 1.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.1237, allocations: 29.7 kB / 484.5 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1237, allocations: 7.922 kB / 484.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.1237, allocations: 7.938 kB / 484.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.11e-07/0.1237, allocations: 0 / 484.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.1237, allocations: 4 kB / 484.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.597e-05/0.1237, allocations: 4.094 kB / 484.5 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.1238, allocations: 0 / 484.5 MB, free: 1.211 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 0.0001107/0.1239, allocations: 135.5 kB / 484.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.253e-06/0.1239, allocations: 0 / 484.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.197e-06/0.1239, allocations: 7.062 kB / 484.6 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.1239, allocations: 0 / 484.6 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1239, allocations: 3.984 kB / 484.6 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1239, allocations: 0 / 484.6 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001119/0.124, allocations: 149.7 kB / 484.8 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.124, allocations: 0 / 484.8 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.124, allocations: 4 kB / 484.8 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.124, allocations: 0 / 484.8 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-06/0.1241, allocations: 3.938 kB / 484.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.1241, allocations: 0 / 484.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1241, allocations: 0 / 484.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.882e-05/0.1242, allocations: 98.77 kB / 484.9 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.018e-05/0.1242, allocations: 77.11 kB / 485 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.378e-05/0.1242, allocations: 11.97 kB / 485 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.895e-06/0.1242, allocations: 0 / 485 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.918e-06/0.1243, allocations: 0 / 485 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.1243, allocations: 3.984 kB / 485 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.414e-05/0.1243, allocations: 75.28 kB / 485.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1243, allocations: 0 / 485.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000249/0.1246, allocations: 48 kB / 485.1 MB, free: 0.5 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.0003715/0.1249, allocations: 201.3 kB / 485.3 MB, free: 304 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.083e-05/0.125, allocations: 55.41 kB / 485.4 MB, free: 236 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.125, allocations: 0 / 485.4 MB, free: 236 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.078e-05/0.1251, allocations: 59.39 kB / 485.4 MB, free: 164 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001149/0.1252, allocations: 3.938 kB / 485.4 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001618/0.1254, allocations: 84.83 kB / 485.5 MB, free: 48 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002345/0.1256, allocations: 0.6729 MB / 486.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.86e-06/0.1256, allocations: 4.125 kB / 486.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.037e-06/0.1256, allocations: 7.438 kB / 486.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.1256, allocations: 0 / 486.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of Templates: time 0.003826/0.1295, allocations: 1.511 MB / 487.7 MB, free: 13.83 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 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.TestBooleanFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches