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.0009812/0.0009813, allocations: 194 kB / 16.76 MB, free: 5.051 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.5 MB / 244 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007206/0.0007206, allocations: 105.9 kB / 296.1 MB, free: 6.652 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3972/0.3972, allocations: 44.82 MB / 392.9 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002506/0.0002506, allocations: 11.98 kB / 465.9 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3324/0.3326, allocations: 62.95 MB / 0.5165 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.0005798/0.3333, allocations: 217.7 kB / 0.5167 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006327/0.3339, allocations: 350.5 kB / 0.517 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.358e-05/0.3339, allocations: 0 / 0.517 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.048e-05/0.334, allocations: 0 / 0.517 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.783e-06/0.334, allocations: 0 / 0.517 GB, free: 36.91 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.0006375/0.3346, allocations: 164.6 kB / 0.5172 GB, free: 36.85 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.672e-05/0.3346, allocations: 0 / 0.5172 GB, free: 36.85 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.502e-05/0.3347, allocations: 2.844 kB / 0.5172 GB, free: 36.85 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.295e-05/0.3347, allocations: 0 / 0.5172 GB, free: 36.85 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.189e-05/0.3347, allocations: 0 / 0.5172 GB, free: 36.85 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.942e-06/0.3347, allocations: 0 / 0.5172 GB, free: 36.85 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000235/0.335, allocations: 163.6 kB / 0.5174 GB, free: 36.8 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.624e-06/0.335, allocations: 4 kB / 0.5174 GB, free: 36.8 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.786e-05/0.335, allocations: 29.69 kB / 0.5174 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001461/0.3352, allocations: 110.8 kB / 0.5175 GB, free: 36.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3352, allocations: 0 / 0.5175 GB, free: 36.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3352, allocations: 0 / 0.5175 GB, free: 36.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.848e-06/0.3352, allocations: 0 / 0.5175 GB, free: 36.73 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.0002656/0.3355, allocations: 370 kB / 0.5178 GB, free: 36.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.3355, allocations: 9.344 kB / 0.5179 GB, free: 36.33 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.043e-05/0.3356, allocations: 0.9375 kB / 0.5179 GB, free: 36.33 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.356e-05/0.3356, allocations: 160.4 kB / 0.518 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.3357, allocations: 4.375 kB / 0.518 GB, free: 36.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.648e-06/0.3357, allocations: 10.09 kB / 0.518 GB, free: 36.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.12e-05/0.3358, allocations: 32.67 kB / 0.5181 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.3358, allocations: 192 / 0.5181 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.927e-06/0.3358, allocations: 3.938 kB / 0.5181 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.3358, allocations: 0 / 0.5181 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.578e-05/0.3358, allocations: 2.406 kB / 0.5181 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.782e-05/0.3359, allocations: 145 kB / 0.5182 GB, free: 35.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.023e-05/0.3359, allocations: 29.17 kB / 0.5182 GB, free: 35.87 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.196e-05/0.336, allocations: 4.859 kB / 0.5182 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.833e-06/0.336, allocations: 2.562 kB / 0.5182 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.336, allocations: 64.14 kB / 0.5183 GB, free: 35.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.336, allocations: 0 / 0.5183 GB, free: 35.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001409/0.3362, allocations: 66.64 kB / 0.5184 GB, free: 35.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.379e-05/0.3362, allocations: 81.23 kB / 0.5184 GB, free: 35.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.057e-05/0.3362, allocations: 93.86 kB / 0.5185 GB, free: 35.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.464e-06/0.3362, allocations: 28.23 kB / 0.5186 GB, free: 35.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.106e-05/0.3363, allocations: 80.14 kB / 0.5186 GB, free: 35.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.366e-05/0.3363, allocations: 0 / 0.5186 GB, free: 35.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.793e-06/0.3363, allocations: 0 / 0.5186 GB, free: 35.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.213e-05/0.3363, allocations: 310.8 kB / 0.5189 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.883e-06/0.3363, allocations: 3 kB / 0.5189 GB, free: 35.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.651e-06/0.3363, allocations: 3.281 kB / 0.5189 GB, free: 35.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.399e-05/0.3364, allocations: 67.11 kB / 0.519 GB, free: 35.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.3364, allocations: 0 / 0.519 GB, free: 35.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.99e-05/0.3365, allocations: 62.19 kB / 0.5191 GB, free: 34.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.674e-05/0.3365, allocations: 34.88 kB / 0.5191 GB, free: 34.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.3365, allocations: 0 / 0.5191 GB, free: 34.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.3365, allocations: 6.906 kB / 0.5191 GB, free: 34.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.3365, allocations: 0 / 0.5191 GB, free: 34.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.3365, allocations: 3.984 kB / 0.5191 GB, free: 34.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.478e-05/0.3365, allocations: 0 / 0.5191 GB, free: 34.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.76e-06/0.3366, allocations: 4.031 kB / 0.5191 GB, free: 34.9 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.591e-05/0.3366, allocations: 134.5 kB / 0.5192 GB, free: 34.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.981e-06/0.3366, allocations: 0 / 0.5192 GB, free: 34.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.816e-06/0.3366, allocations: 12.86 kB / 0.5192 GB, free: 34.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.3367, allocations: 3.938 kB / 0.5192 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.3367, allocations: 4 kB / 0.5193 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.063e-05/0.3367, allocations: 77.11 kB / 0.5193 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.043e-05/0.3367, allocations: 0 / 0.5193 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.255e-06/0.3367, allocations: 3 kB / 0.5193 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.532e-05/0.3367, allocations: 11.94 kB / 0.5193 GB, free: 34.64 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.058e-05/0.3368, allocations: 190.4 kB / 0.5195 GB, free: 34.45 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 8.157e-05/0.3369, allocations: 239.8 kB / 0.5198 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.53e-05/0.3369, allocations: 3.938 kB / 0.5198 GB, free: 34.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.326e-05/0.3369, allocations: 83.22 kB / 0.5198 GB, free: 34.12 MB / 378.7 MB Notification: Performance of Backend: time 1.9e-07/0.337, allocations: 7.094 kB / 0.5198 GB, free: 34.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005899/0.3376, allocations: 220.3 kB / 0.5201 GB, free: 33.97 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002268/0.3378, allocations: 0.5989 MB / 0.5206 GB, free: 33.32 MB / 378.7 MB Error: Internal error GetVarIndexListByMapping: No Element for result found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: result (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for result found!