Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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) 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(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009252/0.0009255, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.0009074/0.0009076, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.84/1.84, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.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: Performance of FrontEnd - loaded program: time 0.0007388/0.0007392, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3542, allocations: 47.59 MB / 326.5 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008291/0.3625, allocations: 7.076 MB / 333.6 MB, free: 11.84 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005229/0.3678, allocations: 2.501 MB / 336.1 MB, free: 9.762 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007873/0.3686, allocations: 23.91 kB / 336.1 MB, free: 9.758 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001322/0.3699, allocations: 463.9 kB / 336.5 MB, free: 9.418 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009628/0.3709, allocations: 389.1 kB / 336.9 MB, free: 9.035 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004186/0.3713, allocations: 151.8 kB / 337.1 MB, free: 8.887 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001381/0.3727, allocations: 1.33 MB / 338.4 MB, free: 7.551 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006086/0.3734, allocations: 427.2 kB / 338.8 MB, free: 7.117 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006186/0.374, allocations: 461.9 kB / 339.3 MB, free: 6.664 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000554/0.3745, allocations: 0.4899 MB / 339.8 MB, free: 6.172 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001014/0.3747, allocations: 64 kB / 339.8 MB, free: 6.109 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002522/0.3749, allocations: 99.97 kB / 339.9 MB, free: 6.012 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001679/0.3751, allocations: 191.1 kB / 340.1 MB, free: 5.824 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002187/0.3753, allocations: 269.1 kB / 340.4 MB, free: 5.555 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001159/0.3765, allocations: 1.344 MB / 341.7 MB, free: 4.207 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.533e-06/0.3765, allocations: 0 / 341.7 MB, free: 4.207 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3765, allocations: 0 / 341.7 MB, free: 4.207 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.714e-05/0.3765, allocations: 4 kB / 341.7 MB, free: 4.203 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002007/0.3785, allocations: 1.266 MB / 343 MB, free: 2.883 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.3786, allocations: 12.03 kB / 343 MB, free: 2.871 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006035/0.3792, allocations: 186.4 kB / 343.2 MB, free: 2.688 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/0.3803, allocations: 0.7068 MB / 343.9 MB, free: 1.938 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.527e-05/0.3803, allocations: 70 kB / 343.9 MB, free: 1.867 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.3805, allocations: 103.9 kB / 344 MB, free: 1.766 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.382, allocations: 0.9307 MB / 345 MB, free: 0.8086 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/0.382, allocations: 0 / 345 MB, free: 0.8086 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.483e-05/0.3821, allocations: 47.98 kB / 345 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.064e-05/0.3821, allocations: 24 kB / 345 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001168/0.3833, allocations: 0.6364 MB / 345.7 MB, free: 104 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004791/0.3881, allocations: 3.954 MB / 349.6 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006439/0.3888, allocations: 437.5 kB / 350.1 MB, free: 11.47 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005084/0.3893, allocations: 261.4 kB / 350.3 MB, free: 11.21 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.485e-05/0.3893, allocations: 4.328 kB / 350.3 MB, free: 11.21 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.3894, allocations: 34.89 kB / 350.4 MB, free: 11.17 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 2.174e-06/0.3894, allocations: 0 / 350.4 MB, free: 11.17 MB / 286.1 MB Notification: Performance of matching and sorting (n=44): time 0.002499/0.3919, allocations: 1.419 MB / 351.8 MB, free: 9.672 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.392, allocations: 81.11 kB / 351.9 MB, free: 9.574 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001033/0.393, allocations: 0.8329 MB / 352.7 MB, free: 8.73 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.393, allocations: 33.7 kB / 352.7 MB, free: 8.691 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003922/0.3934, allocations: 0.5526 MB / 353.3 MB, free: 8.129 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.3936, allocations: 161.7 kB / 353.4 MB, free: 7.969 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.672e-05/0.3936, allocations: 16 kB / 353.5 MB, free: 7.953 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.3937, allocations: 330 kB / 353.8 MB, free: 7.625 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003179/0.3941, allocations: 169.9 kB / 353.9 MB, free: 7.461 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000506/0.3946, allocations: 464 kB / 354.4 MB, free: 6.875 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004169/0.395, allocations: 241.8 kB / 354.6 MB, free: 6.641 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.84e-06/0.395, allocations: 4 kB / 354.6 MB, free: 6.637 MB / 286.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001276/0.3963, allocations: 0.771 MB / 355.4 MB, free: 5.852 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.3963, allocations: 15.98 kB / 355.4 MB, free: 5.836 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.3964, allocations: 8 kB / 355.4 MB, free: 5.828 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002614/0.3966, allocations: 81.97 kB / 355.5 MB, free: 5.742 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004771/0.3971, allocations: 159.7 kB / 355.7 MB, free: 5.586 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002302/0.3994, allocations: 2.876 MB / 358.5 MB, free: 2.438 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005416/0.4, allocations: 39.89 kB / 358.6 MB, free: 2.398 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.173e-05/0.4, allocations: 32 kB / 358.6 MB, free: 2.367 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004148/0.4004, allocations: 253.9 kB / 358.9 MB, free: 2.109 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.4006, allocations: 94.91 kB / 358.9 MB, free: 2.016 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008822/0.4015, allocations: 0.4919 MB / 359.4 MB, free: 1.508 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.4015, allocations: 4 kB / 359.4 MB, free: 1.504 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.4015, allocations: 0 / 359.4 MB, free: 1.504 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.4015, allocations: 0 / 359.4 MB, free: 1.504 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002066/0.4036, allocations: 1.458 MB / 360.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.4036, allocations: 0 / 360.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000303/0.4039, allocations: 71.91 kB / 361 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002001/0.4041, allocations: 77.83 kB / 361 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.4041, allocations: 11.95 kB / 361.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002222/0.4064, allocations: 2.86 MB / 363.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.4064, allocations: 4.031 kB / 363.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.4075, allocations: 0.7728 MB / 364.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002779/0.4078, allocations: 204.1 kB / 364.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.944e-05/0.4079, allocations: 12 kB / 364.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004276/0.4084, allocations: 31.98 kB / 364.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.973e-05/0.4084, allocations: 27.95 kB / 365 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.488e-05/0.4085, allocations: 16 kB / 365 MB, free: 11.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000747/0.4092, allocations: 0.5576 MB / 365.5 MB, free: 11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4092, allocations: 0 / 365.5 MB, free: 11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008064/0.4101, allocations: 200 kB / 365.7 MB, free: 10.8 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002059/0.4103, allocations: 127.1 kB / 365.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.4114, allocations: 0.6945 MB / 366.6 MB, free: 9.949 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4114, allocations: 3.938 kB / 366.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000626/0.412, allocations: 449.9 kB / 367 MB, free: 9.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.4131, allocations: 207.3 kB / 367.2 MB, free: 9.273 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002905/0.416, allocations: 2.099 MB / 369.3 MB, free: 7.125 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005598/0.4166, allocations: 1.005 MB / 370.3 MB, free: 6.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003915/0.417, allocations: 103.2 kB / 370.4 MB, free: 5.984 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.4171, allocations: 59.42 kB / 370.5 MB, free: 5.93 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4171, allocations: 0 / 370.5 MB, free: 5.93 MB / 302.1 MB Notification: Performance of Templates: time 0.01736/0.4345, allocations: 9.648 MB / 380.1 MB, free: 12.27 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1)