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.01001/0.01001, allocations: 101.7 kB / 15.73 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.69/1.69, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.19/0.19, allocations: 39.97 MB / 309.9 MB, free: 4.023 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.001402/0.001402, allocations: 73.61 kB / 435.8 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1163, allocations: 56.88 MB / 492.6 MB, free: 2.793 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001389/0.1177, allocations: 497 kB / 493.1 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005817/0.1183, allocations: 247.6 kB / 493.4 MB, free: 2.066 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.605e-05/0.1183, allocations: 4 kB / 493.4 MB, free: 2.062 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.166e-05/0.1184, allocations: 0 / 493.4 MB, free: 2.062 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.919e-06/0.1184, allocations: 0 / 493.4 MB, free: 2.062 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.0003065/0.1187, allocations: 59.75 kB / 493.4 MB, free: 2.004 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.098e-05/0.1187, allocations: 0 / 493.4 MB, free: 2.004 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.219e-05/0.1188, allocations: 3.984 kB / 493.4 MB, free: 2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.586e-05/0.1188, allocations: 4 kB / 493.4 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.903e-05/0.1188, allocations: 0 / 493.4 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.806e-06/0.1188, allocations: 0 / 493.4 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.119, allocations: 63.95 kB / 493.5 MB, free: 1.934 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.516e-06/0.119, allocations: 0 / 493.5 MB, free: 1.934 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.218e-05/0.119, allocations: 3.984 kB / 493.5 MB, free: 1.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001192/0.1191, allocations: 55.88 kB / 493.5 MB, free: 1.875 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1192, allocations: 7.938 kB / 493.6 MB, free: 1.867 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1192, allocations: 4 kB / 493.6 MB, free: 1.863 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.1192, allocations: 0 / 493.6 MB, free: 1.863 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.000311/0.1195, allocations: 357.2 kB / 493.9 MB, free: 1.457 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.1195, allocations: 15.89 kB / 493.9 MB, free: 1.441 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.79e-05/0.1196, allocations: 0.9375 kB / 493.9 MB, free: 1.441 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.263e-05/0.1197, allocations: 160.4 kB / 494.1 MB, free: 1.246 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.1197, allocations: 4.359 kB / 494.1 MB, free: 1.242 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.025e-05/0.1197, allocations: 384 / 494.1 MB, free: 1.242 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.67e-05/0.1198, allocations: 34.27 kB / 494.1 MB, free: 1.203 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.1198, allocations: 4.188 kB / 494.1 MB, free: 1.199 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.657e-06/0.1198, allocations: 3.938 kB / 494.1 MB, free: 1.195 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.1198, allocations: 0 / 494.1 MB, free: 1.195 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.707e-05/0.1198, allocations: 3.938 kB / 494.1 MB, free: 1.191 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001202/0.1199, allocations: 145.7 kB / 494.3 MB, free: 1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.8e-05/0.12, allocations: 18.56 kB / 494.3 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.221e-05/0.12, allocations: 4.859 kB / 494.3 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.412e-06/0.12, allocations: 4.094 kB / 494.3 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.136e-05/0.1201, allocations: 64.27 kB / 494.4 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.1201, allocations: 0 / 494.4 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001516/0.1202, allocations: 67.28 kB / 494.4 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.835e-05/0.1203, allocations: 85.03 kB / 494.5 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.752e-05/0.1203, allocations: 89.86 kB / 494.6 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.071e-05/0.1203, allocations: 25.7 kB / 494.6 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.278e-05/0.1204, allocations: 80.14 kB / 494.7 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.441e-05/0.1204, allocations: 8.125 kB / 494.7 MB, free: 496 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.406e-05/0.1204, allocations: 13.72 kB / 494.7 MB, free: 476 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.984e-05/0.1205, allocations: 310.8 kB / 495 MB, free: 156 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.576e-06/0.1205, allocations: 0 / 495 MB, free: 156 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.793e-06/0.1205, allocations: 4 kB / 495 MB, free: 152 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.881e-05/0.1206, allocations: 60.27 kB / 495.1 MB, free: 76 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1206, allocations: 0 / 495.1 MB, free: 76 kB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.503e-05/0.1207, allocations: 71.39 kB / 495.2 MB, free: 15.99 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.1207, allocations: 33.7 kB / 495.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.1207, allocations: 0 / 495.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.1207, allocations: 3.938 kB / 495.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.1208, allocations: 0 / 495.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/0.1208, allocations: 0 / 495.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.766e-05/0.1208, allocations: 7.922 kB / 495.2 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/0.1208, allocations: 4 kB / 495.2 MB, free: 15.94 MB / 382.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 7.367e-05/0.1209, allocations: 143.4 kB / 495.3 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.154e-06/0.1209, allocations: 32 / 495.3 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.211e-05/0.1209, allocations: 19 kB / 495.4 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.1209, allocations: 0 / 495.4 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1209, allocations: 4 kB / 495.4 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-06/0.1209, allocations: 0 / 495.4 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.078e-05/0.121, allocations: 149.7 kB / 495.5 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.121, allocations: 0 / 495.5 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.121, allocations: 0 / 495.5 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/0.121, allocations: 4 kB / 495.5 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.121, allocations: 7.938 kB / 495.5 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.121, allocations: 0 / 495.5 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1211, allocations: 4 kB / 495.5 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.154e-05/0.1212, allocations: 94.77 kB / 495.6 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.81e-05/0.1212, allocations: 77.11 kB / 495.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.181e-05/0.1212, allocations: 3.938 kB / 495.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.679e-06/0.1212, allocations: 0 / 495.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.347e-05/0.1212, allocations: 3.938 kB / 495.7 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.1212, allocations: 4 kB / 495.7 MB, free: 15.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.483e-05/0.1213, allocations: 79.31 kB / 495.8 MB, free: 15.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1213, allocations: 0 / 495.8 MB, free: 15.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002111/0.1215, allocations: 23.98 kB / 495.8 MB, free: 15.22 MB / 382.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.0004478/0.1219, allocations: 261.1 kB / 496.1 MB, free: 14.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.035e-05/0.1221, allocations: 67.34 kB / 496.1 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1221, allocations: 0 / 496.1 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.77e-05/0.1221, allocations: 55.41 kB / 496.2 MB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001332/0.1222, allocations: 0 / 496.2 MB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001527/0.1224, allocations: 92.81 kB / 496.3 MB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/0.1226, allocations: 0.669 MB / 496.9 MB, free: 14.03 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.95e-06/0.1226, allocations: 0 / 496.9 MB, free: 14.03 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.766e-06/0.1226, allocations: 7.438 kB / 497 MB, free: 14.02 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1226, allocations: 4 kB / 497 MB, free: 14.02 MB / 382.1 MB Notification: Performance of Templates: time 0.00303/0.1257, allocations: 0.7972 MB / 497.8 MB, free: 13.22 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)