Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002133/0.002132, allocations: 195.5 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.817/1.817, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3494/0.3494, allocations: 39.94 MB / 309.7 MB, free: 9.242 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 70.56 kB / 377.6 MB, free: 12.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1207, allocations: 56.88 MB / 434.5 MB, free: 3.723 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001578/0.1223, allocations: 490.8 kB / 435 MB, free: 3.242 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005495/0.1229, allocations: 259.2 kB / 435.2 MB, free: 2.988 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.713e-05/0.1229, allocations: 0 / 435.2 MB, free: 2.988 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.218e-05/0.1229, allocations: 0 / 435.2 MB, free: 2.988 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 3.848e-06/0.1229, allocations: 0 / 435.2 MB, free: 2.988 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003116/0.1232, allocations: 47.83 kB / 435.3 MB, free: 2.941 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.169e-05/0.1233, allocations: 7.984 kB / 435.3 MB, free: 2.934 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.628e-05/0.1233, allocations: 0 / 435.3 MB, free: 2.934 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.207e-05/0.1234, allocations: 3.938 kB / 435.3 MB, free: 2.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.726e-05/0.1234, allocations: 4 kB / 435.3 MB, free: 2.926 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.554e-06/0.1234, allocations: 0 / 435.3 MB, free: 2.926 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001199/0.1235, allocations: 67.95 kB / 435.3 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.464e-06/0.1235, allocations: 0 / 435.3 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.786e-05/0.1236, allocations: 0 / 435.3 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001151/0.1237, allocations: 55.86 kB / 435.4 MB, free: 2.805 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1237, allocations: 0 / 435.4 MB, free: 2.805 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1237, allocations: 0 / 435.4 MB, free: 2.805 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1237, allocations: 4 kB / 435.4 MB, free: 2.801 MB / 366.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.0003131/0.124, allocations: 357.3 kB / 435.7 MB, free: 2.395 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.1241, allocations: 15.89 kB / 435.8 MB, free: 2.379 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.512e-05/0.1241, allocations: 0.9375 kB / 435.8 MB, free: 2.379 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.877e-05/0.1242, allocations: 168.3 kB / 435.9 MB, free: 2.176 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.1242, allocations: 384 / 435.9 MB, free: 2.176 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.323e-06/0.1242, allocations: 4.375 kB / 435.9 MB, free: 2.172 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.578e-05/0.1243, allocations: 26.27 kB / 436 MB, free: 2.141 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.313e-06/0.1243, allocations: 192 / 436 MB, free: 2.141 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-06/0.1243, allocations: 3.938 kB / 436 MB, free: 2.137 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.942e-06/0.1244, allocations: 4 kB / 436 MB, free: 2.133 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.845e-05/0.1244, allocations: 11.86 kB / 436 MB, free: 2.121 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001261/0.1245, allocations: 149.7 kB / 436.1 MB, free: 1.926 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.983e-05/0.1246, allocations: 24.2 kB / 436.2 MB, free: 1.895 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.467e-05/0.1246, allocations: 4.859 kB / 436.2 MB, free: 1.887 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.588e-06/0.1246, allocations: 0 / 436.2 MB, free: 1.887 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.143e-05/0.1246, allocations: 56.27 kB / 436.2 MB, free: 1.816 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.1246, allocations: 64 / 436.2 MB, free: 1.816 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001634/0.1248, allocations: 83.17 kB / 436.3 MB, free: 1.723 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/0.1249, allocations: 81.11 kB / 436.4 MB, free: 1.625 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.43e-05/0.1249, allocations: 89.86 kB / 436.5 MB, free: 1.527 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.029e-05/0.1249, allocations: 25.7 kB / 436.5 MB, free: 1.496 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.168e-05/0.125, allocations: 80.14 kB / 436.6 MB, free: 1.414 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.17e-05/0.125, allocations: 0 / 436.6 MB, free: 1.414 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.509e-05/0.125, allocations: 13.72 kB / 436.6 MB, free: 1.395 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.4e-05/0.1251, allocations: 314.8 kB / 436.9 MB, free: 1.078 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.027e-06/0.1251, allocations: 4.125 kB / 436.9 MB, free: 1.074 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.649e-06/0.1251, allocations: 0 / 436.9 MB, free: 1.074 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.73e-05/0.1252, allocations: 64.25 kB / 436.9 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1252, allocations: 0 / 436.9 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.388e-05/0.1253, allocations: 67.34 kB / 437 MB, free: 0.918 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.969e-05/0.1253, allocations: 33.7 kB / 437 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1253, allocations: 0 / 437 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.1253, allocations: 7.938 kB / 437.1 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.1253, allocations: 96 / 437.1 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.1253, allocations: 4 kB / 437.1 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.514e-05/0.1254, allocations: 0 / 437.1 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.717e-06/0.1254, allocations: 3.984 kB / 437.1 MB, free: 0.8633 MB / 366.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 8.468e-05/0.1255, allocations: 135.5 kB / 437.2 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.334e-06/0.1255, allocations: 0 / 437.2 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.225e-05/0.1255, allocations: 7.062 kB / 437.2 MB, free: 0.707 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.21e-07/0.1255, allocations: 0 / 437.2 MB, free: 0.707 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.1255, allocations: 0 / 437.2 MB, free: 0.707 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.543e-06/0.1255, allocations: 0 / 437.2 MB, free: 0.707 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.509e-05/0.1256, allocations: 153.7 kB / 437.4 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1256, allocations: 0 / 437.4 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.844e-06/0.1256, allocations: 3.938 kB / 437.4 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1256, allocations: 3.938 kB / 437.4 MB, free: 0.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.854e-06/0.1256, allocations: 3.938 kB / 437.4 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.1257, allocations: 0 / 437.4 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1257, allocations: 0 / 437.4 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.293e-05/0.1257, allocations: 98.77 kB / 437.5 MB, free: 384 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.929e-05/0.1258, allocations: 77.11 kB / 437.5 MB, free: 288 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.1258, allocations: 7.938 kB / 437.5 MB, free: 280 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.766e-06/0.1258, allocations: 0 / 437.5 MB, free: 280 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.29e-05/0.1258, allocations: 4 kB / 437.5 MB, free: 276 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-06/0.1259, allocations: 0 / 437.5 MB, free: 276 kB / 366.1 MB Notification: Performance of sorting global known variables: time 2.286e-05/0.1259, allocations: 75.28 kB / 437.6 MB, free: 200 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1259, allocations: 0 / 437.6 MB, free: 200 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002198/0.1261, allocations: 23.98 kB / 437.6 MB, free: 176 kB / 366.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.0004818/0.1266, allocations: 282.5 kB / 437.9 MB, free: 15.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.555e-05/0.1267, allocations: 55.41 kB / 438 MB, free: 15.83 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1267, allocations: 0 / 438 MB, free: 15.83 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.896e-05/0.1268, allocations: 63.28 kB / 438 MB, free: 15.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001299/0.1269, allocations: 4.125 kB / 438 MB, free: 15.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001499/0.127, allocations: 84.92 kB / 438.1 MB, free: 15.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.1273, allocations: 0.6729 MB / 438.8 MB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.35e-06/0.1273, allocations: 0 / 438.8 MB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.004e-05/0.1273, allocations: 7.438 kB / 438.8 MB, free: 14.94 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1273, allocations: 0 / 438.8 MB, free: 14.94 MB / 382.1 MB Notification: Performance of Templates: time 0.003032/0.1304, allocations: 0.805 MB / 439.6 MB, free: 14.14 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.pipe 2>&1)