Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001468/0.001468, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002327/0.002328, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.916/1.916, allocations: 205.1 MB / 222.1 MB, free: 4.68 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.001898/0.001898, allocations: 51.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4652/0.4671, allocations: 46.63 MB / 324.9 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01527/0.4825, allocations: 8.009 MB / 332.9 MB, free: 11.6 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008328/0.4909, allocations: 2.632 MB / 335.5 MB, free: 9.41 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002585/0.4936, allocations: 23.97 kB / 335.5 MB, free: 9.402 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002873/0.4966, allocations: 0.5058 MB / 336 MB, free: 8.895 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00411/0.5007, allocations: 405.1 kB / 336.4 MB, free: 8.496 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.5018, allocations: 223.8 kB / 336.6 MB, free: 8.277 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003102/0.5049, allocations: 1.455 MB / 338.1 MB, free: 6.816 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001072/0.506, allocations: 0.5924 MB / 338.7 MB, free: 6.203 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001341/0.5074, allocations: 0.5524 MB / 339.2 MB, free: 5.648 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009968/0.5084, allocations: 0.5989 MB / 339.8 MB, free: 5.047 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002386/0.5086, allocations: 140 kB / 340 MB, free: 4.91 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005767/0.5092, allocations: 176 kB / 340.1 MB, free: 4.738 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003536/0.5096, allocations: 282.9 kB / 340.4 MB, free: 4.461 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001079/0.5107, allocations: 0.6571 MB / 341.1 MB, free: 3.801 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002881/0.5136, allocations: 1.705 MB / 342.8 MB, free: 2.09 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.538e-06/0.5136, allocations: 0 / 342.8 MB, free: 2.09 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.624e-06/0.5136, allocations: 0 / 342.8 MB, free: 2.09 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.014e-05/0.5136, allocations: 0 / 342.8 MB, free: 2.09 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.003127/0.5168, allocations: 1.449 MB / 344.2 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.319e-05/0.5169, allocations: 8.031 kB / 344.2 MB, free: 0.5781 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007968/0.5177, allocations: 187.3 kB / 344.4 MB, free: 404 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00149/0.5192, allocations: 0.734 MB / 345.2 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.5193, allocations: 66 kB / 345.2 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001677/0.5195, allocations: 111.8 kB / 345.3 MB, free: 15.44 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002168/0.5217, allocations: 0.923 MB / 346.3 MB, free: 14.49 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.262e-05/0.5217, allocations: 11.92 kB / 346.3 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001144/0.5218, allocations: 40 kB / 346.3 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-05/0.5219, allocations: 31.94 kB / 346.3 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/0.5232, allocations: 0.6325 MB / 347 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006548/0.5297, allocations: 3.922 MB / 350.9 MB, free: 9.629 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008522/0.5306, allocations: 428.7 kB / 351.3 MB, free: 9.184 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006004/0.5313, allocations: 257.4 kB / 351.6 MB, free: 8.93 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.438e-05/0.5313, allocations: 12.31 kB / 351.6 MB, free: 8.918 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.254e-05/0.5314, allocations: 38.89 kB / 351.6 MB, free: 8.871 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 3.747e-06/0.5314, allocations: 0 / 351.6 MB, free: 8.871 MB / 286.1 MB Notification: Performance of matching and sorting (n=44): time 0.00366/0.5351, allocations: 1.395 MB / 353 MB, free: 7.398 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001518/0.5352, allocations: 81.11 kB / 353.1 MB, free: 7.301 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001575/0.5368, allocations: 0.8214 MB / 353.9 MB, free: 6.473 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.49e-05/0.5369, allocations: 37.7 kB / 353.9 MB, free: 6.43 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006155/0.5375, allocations: 0.5564 MB / 354.5 MB, free: 5.863 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001749/0.5377, allocations: 161.7 kB / 354.7 MB, free: 5.703 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002451/0.538, allocations: 126.6 kB / 354.8 MB, free: 5.57 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.5382, allocations: 330 kB / 355.1 MB, free: 5.242 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003523/0.5385, allocations: 165.9 kB / 355.3 MB, free: 5.082 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006328/0.5392, allocations: 460 kB / 355.7 MB, free: 4.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009197/0.5401, allocations: 0.6622 MB / 356.4 MB, free: 3.703 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.5401, allocations: 4 kB / 356.4 MB, free: 3.699 MB / 286.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001593/0.5417, allocations: 0.7781 MB / 357.2 MB, free: 2.91 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.5418, allocations: 8 kB / 357.2 MB, free: 2.902 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-05/0.5418, allocations: 12.36 kB / 357.2 MB, free: 2.891 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003197/0.5421, allocations: 85.62 kB / 357.3 MB, free: 2.801 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004966/0.5426, allocations: 159.7 kB / 357.4 MB, free: 2.645 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00339/0.546, allocations: 3.149 MB / 360.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009282/0.547, allocations: 31.98 kB / 360.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001808/0.5472, allocations: 32 kB / 360.6 MB, free: 15.16 MB / 302.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007154/0.5479, allocations: 269.5 kB / 360.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000181/0.5481, allocations: 86.97 kB / 361 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001107/0.5492, allocations: 495.4 kB / 361.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.5492, allocations: 11.92 kB / 361.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.5492, allocations: 0 / 361.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.343e-06/0.5493, allocations: 0 / 361.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003287/0.5525, allocations: 1.434 MB / 362.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/0.5526, allocations: 4.219 kB / 362.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003582/0.5529, allocations: 67.91 kB / 363 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004215/0.5534, allocations: 77.73 kB / 363.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.274e-05/0.5534, allocations: 16 kB / 363.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003925/0.5574, allocations: 3.118 MB / 366.2 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.5574, allocations: 4.031 kB / 366.2 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001968/0.5594, allocations: 0.7612 MB / 367 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004971/0.5599, allocations: 196.1 kB / 367.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001963/0.5601, allocations: 15.92 kB / 367.2 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004537/0.5605, allocations: 28.11 kB / 367.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.5607, allocations: 31.95 kB / 367.2 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.945e-05/0.5607, allocations: 20 kB / 367.2 MB, free: 8.086 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001107/0.5618, allocations: 0.5615 MB / 367.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5619, allocations: 0 / 367.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001492/0.5634, allocations: 204 kB / 368 MB, free: 7.332 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (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.0004156/0.5638, allocations: 123.1 kB / 368.1 MB, free: 7.199 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001815/0.5656, allocations: 0.6988 MB / 368.8 MB, free: 6.477 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.5656, allocations: 0 / 368.8 MB, free: 6.477 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007929/0.5664, allocations: 445.5 kB / 369.3 MB, free: 6.016 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001396/0.5678, allocations: 234 kB / 369.5 MB, free: 5.789 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004975/0.5728, allocations: 2.133 MB / 371.6 MB, free: 3.605 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001334/0.5742, allocations: 1.009 MB / 372.6 MB, free: 2.566 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006454/0.5749, allocations: 99.27 kB / 372.7 MB, free: 2.465 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001534/0.575, allocations: 59.42 kB / 372.8 MB, free: 2.41 MB / 302.1 MB Notification: Performance of SimCode: time 2.174e-06/0.575, allocations: 0 / 372.8 MB, free: 2.41 MB / 302.1 MB Notification: Performance of Templates: time 0.02981/0.6049, allocations: 10.45 MB / 383.2 MB, free: 7.938 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1)