Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000887/0.0008869, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001023/0.001023, allocations: 172.7 kB / 15.95 MB, free: 208 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.698/1.698, 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.0004901/0.0004906, allocations: 8 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3587, allocations: 47.59 MB / 326.5 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01441/0.3732, allocations: 10.34 MB / 336.8 MB, free: 9.133 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009294/0.3825, allocations: 3.026 MB / 339.8 MB, free: 6.098 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003215/0.3858, allocations: 39.88 kB / 339.9 MB, free: 6.059 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003473/0.3893, allocations: 0.5126 MB / 340.4 MB, free: 5.543 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004742/0.3941, allocations: 0.5583 MB / 341 MB, free: 4.98 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001987/0.3961, allocations: 243.7 kB / 341.2 MB, free: 4.742 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004885/0.401, allocations: 2.012 MB / 343.2 MB, free: 2.719 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002496/0.4035, allocations: 0.683 MB / 343.9 MB, free: 2.016 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002602/0.4062, allocations: 0.665 MB / 344.6 MB, free: 1.348 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002466/0.4087, allocations: 0.7504 MB / 345.3 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000727/0.4094, allocations: 104 kB / 345.4 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001348/0.4108, allocations: 140 kB / 345.5 MB, free: 364 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006472/0.4114, allocations: 290.6 kB / 345.8 MB, free: 72 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001385/0.4128, allocations: 388.8 kB / 346.2 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003563/0.4164, allocations: 2.107 MB / 348.3 MB, free: 13.57 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.026e-05/0.4164, allocations: 0 / 348.3 MB, free: 13.57 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.4165, allocations: 0 / 348.3 MB, free: 13.57 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.000129/0.4166, allocations: 0 / 348.3 MB, free: 13.57 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.005162/0.4218, allocations: 1.779 MB / 350.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.974e-05/0.4218, allocations: 8.031 kB / 350.1 MB, free: 11.72 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001517/0.4234, allocations: 257.6 kB / 350.4 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002351/0.4257, allocations: 0.9848 MB / 351.3 MB, free: 10.44 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001271/0.4259, allocations: 111.1 kB / 351.4 MB, free: 10.33 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002464/0.4261, allocations: 167.8 kB / 351.6 MB, free: 10.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003192/0.4293, allocations: 1.48 MB / 353.1 MB, free: 8.609 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.747e-05/0.4294, allocations: 11.84 kB / 353.1 MB, free: 8.598 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001369/0.4296, allocations: 64 kB / 353.2 MB, free: 8.535 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.915e-05/0.4296, allocations: 43.98 kB / 353.2 MB, free: 8.492 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002111/0.4317, allocations: 0.9669 MB / 354.2 MB, free: 7.52 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01137/0.4431, allocations: 6.59 MB / 360.8 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/0.4445, allocations: 416.2 kB / 361.2 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004882/0.445, allocations: 218.1 kB / 361.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.527e-05/0.4451, allocations: 8.438 kB / 361.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007328/0.4458, allocations: 272.8 kB / 361.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 3.857e-06/0.4458, allocations: 0 / 361.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.00425/0.4501, allocations: 1.781 MB / 363.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000152/0.4503, allocations: 158.8 kB / 363.6 MB, free: 13.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002139/0.4524, allocations: 1.269 MB / 364.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.001e-05/0.4525, allocations: 49.58 kB / 364.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000906/0.4534, allocations: 0.8673 MB / 365.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002275/0.4536, allocations: 205.2 kB / 366 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.113e-05/0.4537, allocations: 24 kB / 366 MB, free: 11.13 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002488/0.454, allocations: 349.9 kB / 366.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004967/0.4545, allocations: 234.4 kB / 366.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.4556, allocations: 0.8034 MB / 367.4 MB, free: 9.477 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006648/0.4563, allocations: 399.6 kB / 367.8 MB, free: 9.078 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.948e-06/0.4563, allocations: 7.953 kB / 367.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002044/0.4584, allocations: 1.177 MB / 369 MB, free: 7.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.47e-05/0.4584, allocations: 37.7 kB / 369 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.658e-05/0.4585, allocations: 24.06 kB / 369 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002721/0.4587, allocations: 65.64 kB / 369.1 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008155/0.4596, allocations: 275.6 kB / 369.3 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002297/0.4619, allocations: 2.583 MB / 371.9 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/0.463, allocations: 72.02 kB / 372 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.349e-05/0.4631, allocations: 60 kB / 372.1 MB, free: 4.488 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000893/0.464, allocations: 357.3 kB / 372.4 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001855/0.4642, allocations: 130.4 kB / 372.5 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001141/0.4653, allocations: 0.5683 MB / 373.1 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.4653, allocations: 4 kB / 373.1 MB, free: 3.422 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.4653, allocations: 96 / 373.1 MB, free: 3.422 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/0.4654, allocations: 3.984 kB / 373.1 MB, free: 3.418 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003287/0.4687, allocations: 1.889 MB / 375 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.4687, allocations: 4 kB / 375 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004488/0.4691, allocations: 103.9 kB / 375.1 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001605/0.4693, allocations: 45.69 kB / 375.1 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.866e-05/0.4694, allocations: 12.28 kB / 375.2 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002113/0.4715, allocations: 2.556 MB / 377.7 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.036e-06/0.4715, allocations: 15.92 kB / 377.7 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001721/0.4732, allocations: 0.9342 MB / 378.7 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007446/0.474, allocations: 247.5 kB / 378.9 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002903/0.4743, allocations: 16 kB / 378.9 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006643/0.475, allocations: 39.97 kB / 379 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.4751, allocations: 55.83 kB / 379 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.648e-05/0.4752, allocations: 20 kB / 379 MB, free: 13 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00164/0.4768, allocations: 0.8344 MB / 379.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4768, allocations: 4 kB / 379.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001916/0.4788, allocations: 308 kB / 380.2 MB, free: 11.86 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003637/0.4791, allocations: 127 kB / 380.3 MB, free: 11.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002174/0.4813, allocations: 0.9408 MB / 381.2 MB, free: 10.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.4814, allocations: 0 / 381.2 MB, free: 10.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000853/0.4822, allocations: 482.2 kB / 381.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002203/0.4844, allocations: 313 kB / 382 MB, free: 9.945 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006968/0.4914, allocations: 3.079 MB / 385.1 MB, free: 6.785 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/0.4925, allocations: 1.178 MB / 386.3 MB, free: 5.578 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008549/0.4934, allocations: 171.3 kB / 386.4 MB, free: 5.406 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.4936, allocations: 87.42 kB / 386.5 MB, free: 5.32 MB / 318.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4936, allocations: 0 / 386.5 MB, free: 5.32 MB / 318.1 MB Notification: Performance of Templates: time 0.03221/0.5258, allocations: 13.73 MB / 400.3 MB, free: 7.566 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1)