Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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.DCEE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001751/0.001752, allocations: 108 kB / 15.61 MB, free: 152 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.002627/0.002627, allocations: 196.8 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.017/2.017, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.001931/0.001932, allocations: 55.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3745/0.3765, allocations: 46.62 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.01328/0.3899, allocations: 7.946 MB / 333.3 MB, free: 11.53 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008138/0.3981, allocations: 2.624 MB / 335.9 MB, free: 9.32 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0026/0.4008, allocations: 23.94 kB / 335.9 MB, free: 9.297 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002399/0.4032, allocations: 0.5481 MB / 336.5 MB, free: 8.746 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002679/0.4059, allocations: 456.4 kB / 336.9 MB, free: 8.297 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009414/0.4069, allocations: 247.7 kB / 337.1 MB, free: 8.055 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002748/0.4097, allocations: 1.416 MB / 338.6 MB, free: 6.633 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001046/0.4107, allocations: 0.5885 MB / 339.1 MB, free: 6.023 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00109/0.4118, allocations: 0.5408 MB / 339.7 MB, free: 5.48 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007522/0.4126, allocations: 0.5794 MB / 340.3 MB, free: 4.898 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001801/0.4128, allocations: 136 kB / 340.4 MB, free: 4.766 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004182/0.4132, allocations: 172 kB / 340.6 MB, free: 4.598 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002217/0.4134, allocations: 271 kB / 340.8 MB, free: 4.332 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000706/0.4141, allocations: 0.6454 MB / 341.5 MB, free: 3.684 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002005/0.4162, allocations: 1.686 MB / 343.2 MB, free: 1.992 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/0.4162, allocations: 0 / 343.2 MB, free: 1.992 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4162, allocations: 0 / 343.2 MB, free: 1.992 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.531e-05/0.4162, allocations: 0 / 343.2 MB, free: 1.992 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002996/0.4192, allocations: 1.425 MB / 344.6 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.4193, allocations: 8.031 kB / 344.6 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005738/0.4199, allocations: 167.4 kB / 344.8 MB, free: 348 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.4211, allocations: 0.7183 MB / 345.5 MB, free: 15.58 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.979e-05/0.4212, allocations: 74 kB / 345.5 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001694/0.4213, allocations: 103.9 kB / 345.6 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001526/0.4229, allocations: 0.919 MB / 346.6 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.19e-05/0.4229, allocations: 4 kB / 346.6 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.966e-05/0.423, allocations: 40 kB / 346.6 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.423, allocations: 28 kB / 346.6 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00118/0.4242, allocations: 0.6207 MB / 347.3 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004992/0.4292, allocations: 3.916 MB / 351.2 MB, free: 9.613 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005787/0.4298, allocations: 355.6 kB / 351.5 MB, free: 9.238 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002928/0.4302, allocations: 148.8 kB / 351.7 MB, free: 9.09 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.4302, allocations: 4 kB / 351.7 MB, free: 9.086 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.4302, allocations: 38.55 kB / 351.7 MB, free: 9.039 MB / 286.1 MB Notification: Performance of pre-optimization done (n=32): time 2.475e-06/0.4303, allocations: 8 kB / 351.7 MB, free: 9.031 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.00236/0.4326, allocations: 1.183 MB / 352.9 MB, free: 7.773 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.36e-05/0.4327, allocations: 81.11 kB / 353 MB, free: 7.676 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001101/0.4338, allocations: 0.8291 MB / 353.8 MB, free: 6.84 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.4338, allocations: 29.7 kB / 353.8 MB, free: 6.805 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004445/0.4343, allocations: 0.564 MB / 354.4 MB, free: 6.23 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.4344, allocations: 134.2 kB / 354.5 MB, free: 6.098 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001735/0.4346, allocations: 126.5 kB / 354.7 MB, free: 5.965 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.4347, allocations: 330 kB / 355 MB, free: 5.637 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000307/0.435, allocations: 149.9 kB / 355.1 MB, free: 5.492 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005066/0.4355, allocations: 464 kB / 355.6 MB, free: 4.895 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008511/0.4364, allocations: 0.6429 MB / 356.2 MB, free: 4.109 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.4364, allocations: 4 kB / 356.2 MB, free: 4.105 MB / 286.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001275/0.4377, allocations: 0.684 MB / 356.9 MB, free: 3.41 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.4377, allocations: 16.67 kB / 356.9 MB, free: 3.395 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.4378, allocations: 12 kB / 356.9 MB, free: 3.383 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002017/0.438, allocations: 28.86 kB / 357 MB, free: 3.352 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004947/0.4385, allocations: 163.7 kB / 357.1 MB, free: 3.191 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001156/0.4396, allocations: 1.382 MB / 358.5 MB, free: 1.668 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000609/0.4403, allocations: 35.98 kB / 358.5 MB, free: 1.633 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.078e-05/0.4403, allocations: 36.09 kB / 358.6 MB, free: 1.598 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004358/0.4408, allocations: 253.5 kB / 358.8 MB, free: 1.34 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.4409, allocations: 90.91 kB / 358.9 MB, free: 1.25 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007645/0.4417, allocations: 374.4 kB / 359.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.4417, allocations: 8.031 kB / 359.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.4417, allocations: 4 kB / 359.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.4417, allocations: 0 / 359.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001932/0.4436, allocations: 1.261 MB / 360.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.4437, allocations: 4 kB / 360.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003123/0.444, allocations: 79.83 kB / 360.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.446e-05/0.4441, allocations: 21.06 kB / 360.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.4441, allocations: 16 kB / 360.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001073/0.4452, allocations: 1.363 MB / 362 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.4452, allocations: 4.031 kB / 362 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.4463, allocations: 0.635 MB / 362.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002826/0.4466, allocations: 184.1 kB / 362.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001245/0.4467, allocations: 20 kB / 362.9 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004103/0.4471, allocations: 23.92 kB / 362.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.108e-05/0.4472, allocations: 27.91 kB / 362.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.227e-05/0.4473, allocations: 15.98 kB / 362.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008853/0.4482, allocations: 0.5576 MB / 363.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.5e-07/0.4482, allocations: 4 kB / 363.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008752/0.4491, allocations: 192 kB / 363.7 MB, free: 12.19 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002636/0.4493, allocations: 115.1 kB / 363.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001236/0.4506, allocations: 0.5312 MB / 364.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.4506, allocations: 4.312 kB / 364.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004494/0.451, allocations: 270.3 kB / 364.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001217/0.4523, allocations: 210.7 kB / 364.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003239/0.4555, allocations: 1.718 MB / 366.5 MB, free: 9.273 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007122/0.4563, allocations: 0.9923 MB / 367.5 MB, free: 8.254 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004215/0.4567, allocations: 102.9 kB / 367.6 MB, free: 8.148 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/0.4568, allocations: 59.44 kB / 367.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4568, allocations: 0 / 367.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of Templates: time 0.01981/0.4767, allocations: 9.472 MB / 377.1 MB, free: 14.59 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1)