Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000938/0.0009383, allocations: 178.2 kB / 17.39 MB, free: 4.395 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.368/1.368, allocations: 205.4 MB / 223.5 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008145/0.0008145, allocations: 92.36 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3613/0.3613, allocations: 43.56 MB / 363.7 MB, free: 51.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003591/0.0003592, allocations: 12 kB / 432.6 MB, free: 5.605 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1241, allocations: 58.85 MB / 491.5 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0005715/0.1247, allocations: 220.4 kB / 491.7 MB, free: 10.45 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005858/0.1253, allocations: 274.7 kB / 492 MB, free: 10.18 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.708e-05/0.1254, allocations: 0 / 492 MB, free: 10.18 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.999e-06/0.1254, allocations: 0 / 492 MB, free: 10.18 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.153e-06/0.1254, allocations: 0 / 492 MB, free: 10.18 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006618/0.1261, allocations: 87.8 kB / 492 MB, free: 10.09 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.826e-05/0.1261, allocations: 0 / 492 MB, free: 10.09 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.505e-05/0.1262, allocations: 0 / 492 MB, free: 10.09 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.698e-05/0.1262, allocations: 3.984 kB / 492 MB, free: 10.09 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.356e-05/0.1262, allocations: 0 / 492 MB, free: 10.09 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.583e-06/0.1262, allocations: 4 kB / 492.1 MB, free: 10.09 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000158/0.1264, allocations: 99.84 kB / 492.2 MB, free: 9.988 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.105e-06/0.1264, allocations: 0 / 492.2 MB, free: 9.988 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.888e-05/0.1264, allocations: 25.7 kB / 492.2 MB, free: 9.957 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001078/0.1266, allocations: 59.84 kB / 492.2 MB, free: 9.898 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1266, allocations: 4 kB / 492.2 MB, free: 9.895 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1266, allocations: 0 / 492.2 MB, free: 9.895 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.1266, allocations: 0 / 492.2 MB, free: 9.895 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.0002808/0.1269, allocations: 352.9 kB / 492.6 MB, free: 9.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.1269, allocations: 8.031 kB / 492.6 MB, free: 9.492 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.111e-05/0.127, allocations: 12.92 kB / 492.6 MB, free: 9.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.215e-05/0.1271, allocations: 164.3 kB / 492.8 MB, free: 9.281 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.078e-06/0.1271, allocations: 384 / 492.8 MB, free: 9.281 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.071e-05/0.1271, allocations: 384 / 492.8 MB, free: 9.281 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.678e-05/0.1272, allocations: 34.27 kB / 492.8 MB, free: 9.242 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.1272, allocations: 3.938 kB / 492.8 MB, free: 9.238 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.684e-06/0.1272, allocations: 0 / 492.8 MB, free: 9.238 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.1272, allocations: 0 / 492.8 MB, free: 9.238 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.496e-05/0.1272, allocations: 0 / 492.8 MB, free: 9.238 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001138/0.1274, allocations: 149.7 kB / 492.9 MB, free: 9.043 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.635e-05/0.1274, allocations: 22.52 kB / 493 MB, free: 9.012 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.214e-05/0.1274, allocations: 4.859 kB / 493 MB, free: 9.004 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.996e-06/0.1274, allocations: 4.094 kB / 493 MB, free: 9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.194e-05/0.1275, allocations: 60.27 kB / 493 MB, free: 8.926 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.305e-06/0.1275, allocations: 0 / 493 MB, free: 8.926 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001465/0.1277, allocations: 75.17 kB / 493.1 MB, free: 8.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.1277, allocations: 77.11 kB / 493.2 MB, free: 8.746 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.74e-05/0.1277, allocations: 93.86 kB / 493.3 MB, free: 8.645 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.057e-05/0.1278, allocations: 29.64 kB / 493.3 MB, free: 8.609 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.057e-05/0.1278, allocations: 80.27 kB / 493.4 MB, free: 8.527 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.329e-05/0.1278, allocations: 4 kB / 493.4 MB, free: 8.523 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-06/0.1278, allocations: 0 / 493.4 MB, free: 8.523 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.304e-05/0.1279, allocations: 314.8 kB / 493.7 MB, free: 8.207 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.153e-06/0.1279, allocations: 0 / 493.7 MB, free: 8.207 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.419e-06/0.1279, allocations: 0 / 493.7 MB, free: 8.207 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.165e-05/0.128, allocations: 64.25 kB / 493.8 MB, free: 8.129 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.128, allocations: 0 / 493.8 MB, free: 8.129 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.147e-05/0.1281, allocations: 63.47 kB / 493.8 MB, free: 8.055 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.621e-05/0.1281, allocations: 33.73 kB / 493.9 MB, free: 8.016 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.1281, allocations: 0 / 493.9 MB, free: 8.016 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.1281, allocations: 3.938 kB / 493.9 MB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.953e-06/0.1281, allocations: 3.938 kB / 493.9 MB, free: 8.008 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.1281, allocations: 7.984 kB / 493.9 MB, free: 8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.519e-05/0.1282, allocations: 3.938 kB / 493.9 MB, free: 7.996 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.1282, allocations: 0 / 493.9 MB, free: 7.996 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 6.98e-05/0.1282, allocations: 131.5 kB / 494 MB, free: 7.852 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.172e-06/0.1283, allocations: 4 kB / 494 MB, free: 7.848 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.091e-05/0.1283, allocations: 11.06 kB / 494 MB, free: 7.836 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.1283, allocations: 4 kB / 494 MB, free: 7.832 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1283, allocations: 0 / 494 MB, free: 7.832 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.598e-05/0.1283, allocations: 77.11 kB / 494.1 MB, free: 7.738 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.174e-05/0.1283, allocations: 3.984 kB / 494.1 MB, free: 7.734 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.845e-06/0.1284, allocations: 4 kB / 494.1 MB, free: 7.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.506e-05/0.1284, allocations: 3.984 kB / 494.1 MB, free: 7.727 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.708e-05/0.1285, allocations: 190.1 kB / 494.3 MB, free: 7.516 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001237/0.1286, allocations: 252.4 kB / 494.5 MB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.381e-05/0.1286, allocations: 0 / 494.5 MB, free: 7.246 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.148e-05/0.1287, allocations: 75.28 kB / 494.6 MB, free: 7.172 MB / 378.7 MB Notification: Performance of Backend: time 1.9e-07/0.1287, allocations: 0 / 494.6 MB, free: 7.172 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006911/0.1294, allocations: 313 kB / 494.9 MB, free: 6.883 MB / 378.7 MB Notification: Performance of SimCode: time 0.0003356/0.1297, allocations: 0.6065 MB / 495.5 MB, free: 6.211 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!