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.001788/0.001788, allocations: 112.5 kB / 17.86 MB, free: 5.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002422/0.002422, allocations: 205.8 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.342/2.342, allocations: 227.4 MB / 246.9 MB, free: 9.027 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3528/0.3528, allocations: 46.11 MB / 344.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002708/0.002708, allocations: 72.19 kB / 417.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1909/0.1937, allocations: 62.45 MB / 479.9 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.00293/0.1967, allocations: 0.5437 MB / 480.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.1981, allocations: 385.5 kB / 480.8 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.837e-05/0.1982, allocations: 0 / 480.8 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.559e-05/0.1982, allocations: 0 / 480.8 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.323e-06/0.1982, allocations: 0 / 480.8 MB, free: 4.785 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.001029/0.1993, allocations: 163.5 kB / 481 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.476e-05/0.1993, allocations: 4 kB / 481 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.779e-05/0.1994, allocations: 0 / 481 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.528e-05/0.1994, allocations: 3.938 kB / 481 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.278e-05/0.1995, allocations: 4 kB / 481 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.205e-06/0.1995, allocations: 4 kB / 481 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004404/0.1999, allocations: 167.7 kB / 481.2 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.083e-05/0.2, allocations: 0 / 481.2 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.377e-05/0.2, allocations: 0 / 481.2 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002482/0.2003, allocations: 99.83 kB / 481.3 MB, free: 4.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.777e-06/0.2003, allocations: 3.984 kB / 481.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2003, allocations: 0 / 481.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.301e-06/0.2003, allocations: 0 / 481.3 MB, free: 4.348 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.0005328/0.2008, allocations: 369.2 kB / 481.6 MB, free: 3.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.689e-05/0.2009, allocations: 8.875 kB / 481.7 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.095e-05/0.201, allocations: 8.938 kB / 481.7 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001499/0.2011, allocations: 168.3 kB / 481.8 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.2012, allocations: 384 / 481.8 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.474e-05/0.2012, allocations: 4.375 kB / 481.8 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001271/0.2013, allocations: 26.27 kB / 481.9 MB, free: 3.676 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.2013, allocations: 192 / 481.9 MB, free: 3.676 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.2014, allocations: 3.938 kB / 481.9 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.2014, allocations: 0 / 481.9 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.212e-05/0.2014, allocations: 7.984 kB / 481.9 MB, free: 3.664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001902/0.2016, allocations: 145.7 kB / 482 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.199e-05/0.2017, allocations: 26.55 kB / 482 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.37e-05/0.2017, allocations: 4.859 kB / 482 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.322e-06/0.2017, allocations: 0 / 482 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.204e-05/0.2018, allocations: 56.27 kB / 482.1 MB, free: 3.359 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.293e-06/0.2018, allocations: 0 / 482.1 MB, free: 3.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002622/0.2021, allocations: 67.48 kB / 482.2 MB, free: 3.281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.392e-05/0.2022, allocations: 81.14 kB / 482.2 MB, free: 3.184 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.368e-05/0.2023, allocations: 97.86 kB / 482.3 MB, free: 3.078 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.25e-05/0.2023, allocations: 25.7 kB / 482.4 MB, free: 3.047 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.636e-05/0.2024, allocations: 80.14 kB / 482.4 MB, free: 2.965 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.119e-05/0.2024, allocations: 3.938 kB / 482.4 MB, free: 2.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.628e-05/0.2025, allocations: 9.719 kB / 482.5 MB, free: 2.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.2027, allocations: 318.8 kB / 482.8 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.282e-05/0.2027, allocations: 0 / 482.8 MB, free: 2.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.626e-06/0.2027, allocations: 4 kB / 482.8 MB, free: 2.621 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.73e-05/0.2028, allocations: 64.27 kB / 482.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2028, allocations: 0 / 482.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.714e-05/0.2029, allocations: 59.41 kB / 482.9 MB, free: 2.473 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.361e-05/0.203, allocations: 33.69 kB / 482.9 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.203, allocations: 0 / 482.9 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.203, allocations: 3.938 kB / 482.9 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.857e-06/0.203, allocations: 0 / 482.9 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.203, allocations: 15.97 kB / 482.9 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.133e-05/0.2031, allocations: 0 / 482.9 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.126e-06/0.2031, allocations: 0 / 482.9 MB, free: 2.414 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.000129/0.2032, allocations: 135.5 kB / 483.1 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.093e-05/0.2032, allocations: 0 / 483.1 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.72e-05/0.2033, allocations: 7.062 kB / 483.1 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.2033, allocations: 0 / 483.1 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.2033, allocations: 3.984 kB / 483.1 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.2033, allocations: 0 / 483.1 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001592/0.2035, allocations: 153.7 kB / 483.2 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2035, allocations: 0 / 483.2 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.052e-06/0.2035, allocations: 3.938 kB / 483.2 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2035, allocations: 0 / 483.2 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.2035, allocations: 3.938 kB / 483.2 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.2035, allocations: 4 kB / 483.3 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2035, allocations: 0 / 483.3 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001363/0.2037, allocations: 90.83 kB / 483.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.075e-05/0.2038, allocations: 81.14 kB / 483.4 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.333e-05/0.2038, allocations: 7.938 kB / 483.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.874e-05/0.2038, allocations: 3.984 kB / 483.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.718e-05/0.2038, allocations: 3.938 kB / 483.4 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.51e-06/0.2039, allocations: 3.984 kB / 483.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.621e-05/0.2039, allocations: 75.28 kB / 483.5 MB, free: 1.742 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2039, allocations: 0 / 483.5 MB, free: 1.742 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005158/0.2044, allocations: 48 kB / 483.6 MB, free: 1.695 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.0006372/0.2051, allocations: 197.5 kB / 483.8 MB, free: 1.492 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000126/0.2052, allocations: 59.34 kB / 483.8 MB, free: 1.422 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2052, allocations: 0 / 483.8 MB, free: 1.422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.369e-05/0.2053, allocations: 63.39 kB / 483.9 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002345/0.2056, allocations: 3.5 kB / 483.9 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002805/0.2059, allocations: 104.4 kB / 484 MB, free: 1.211 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003711/0.2063, allocations: 0.6733 MB / 484.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.689e-05/0.2063, allocations: 11.44 kB / 484.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2063, allocations: 3.938 kB / 484.7 MB, free: 0.5 MB / 350.1 MB Notification: Performance of Templates: time 0.005232/0.2115, allocations: 1.517 MB / 486.2 MB, free: 14.98 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)