Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001401/0.001401, 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.001461/0.001461, allocations: 194.1 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 1.698/1.698, allocations: 205.1 MB / 222.4 MB, free: 4.578 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.001442/0.001442, allocations: 59.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3355/0.337, allocations: 46.63 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01695/0.354, allocations: 11.68 MB / 337 MB, free: 8.184 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00949/0.3636, allocations: 3.235 MB / 340.2 MB, free: 4.938 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003516/0.3672, allocations: 35.94 kB / 340.3 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003102/0.3704, allocations: 0.6324 MB / 340.9 MB, free: 4.266 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004685/0.3751, allocations: 0.6859 MB / 341.6 MB, free: 3.574 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002207/0.3773, allocations: 395.5 kB / 342 MB, free: 3.188 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005113/0.3824, allocations: 2.23 MB / 344.2 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002385/0.3849, allocations: 0.9927 MB / 345.2 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002011/0.3869, allocations: 0.825 MB / 346 MB, free: 15.08 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002717/0.3896, allocations: 0.9178 MB / 346.9 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009047/0.3906, allocations: 216 kB / 347.2 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001548/0.3921, allocations: 256 kB / 347.4 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000857/0.393, allocations: 430.4 kB / 347.8 MB, free: 13.28 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003219/0.3962, allocations: 1.019 MB / 348.8 MB, free: 12.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004863/0.4011, allocations: 2.647 MB / 351.5 MB, free: 9.598 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.4012, allocations: 0 / 351.5 MB, free: 9.598 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.4012, allocations: 0 / 351.5 MB, free: 9.598 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001381/0.4013, allocations: 0 / 351.5 MB, free: 9.598 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.006067/0.4074, allocations: 2.06 MB / 353.5 MB, free: 7.473 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/0.4075, allocations: 12.03 kB / 353.6 MB, free: 7.461 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009945/0.4085, allocations: 254.5 kB / 353.8 MB, free: 7.211 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00183/0.4103, allocations: 1.032 MB / 354.8 MB, free: 6.137 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.776e-05/0.4104, allocations: 119.5 kB / 355 MB, free: 6.02 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002132/0.4106, allocations: 163.8 kB / 355.1 MB, free: 5.859 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002589/0.4132, allocations: 1.483 MB / 356.6 MB, free: 4.301 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.623e-05/0.4133, allocations: 7.906 kB / 356.6 MB, free: 4.293 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/0.4134, allocations: 64 kB / 356.7 MB, free: 4.23 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.924e-05/0.4135, allocations: 40 kB / 356.7 MB, free: 4.191 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001891/0.4154, allocations: 0.9785 MB / 357.7 MB, free: 3.207 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0107/0.4261, allocations: 6.57 MB / 364.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009895/0.4271, allocations: 396.2 kB / 364.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005066/0.4277, allocations: 222.1 kB / 364.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.55e-05/0.4277, allocations: 4.438 kB / 364.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007185/0.4285, allocations: 276.7 kB / 365.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 3.686e-06/0.4285, allocations: 3.938 kB / 365.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004366/0.4329, allocations: 1.758 MB / 366.9 MB, free: 9.512 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001461/0.433, allocations: 162.8 kB / 367.1 MB, free: 9.316 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002665/0.4357, allocations: 1.281 MB / 368.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.315e-05/0.4358, allocations: 37.7 kB / 368.4 MB, free: 7.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008933/0.4367, allocations: 0.8712 MB / 369.2 MB, free: 7.094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002355/0.4369, allocations: 201.2 kB / 369.4 MB, free: 6.895 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003832/0.4373, allocations: 218.7 kB / 369.7 MB, free: 6.672 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001896/0.4375, allocations: 353.9 kB / 370 MB, free: 6.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005646/0.4381, allocations: 234.5 kB / 370.2 MB, free: 6.094 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001214/0.4393, allocations: 0.7995 MB / 371 MB, free: 5.016 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001591/0.4409, allocations: 1.122 MB / 372.2 MB, free: 3.621 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.915e-05/0.441, allocations: 4 kB / 372.2 MB, free: 3.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002339/0.4433, allocations: 1.173 MB / 373.3 MB, free: 2.422 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.594e-05/0.4434, allocations: 45.89 kB / 373.4 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.943e-05/0.4434, allocations: 16 kB / 373.4 MB, free: 2.355 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003291/0.4438, allocations: 69.64 kB / 373.5 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000836/0.4446, allocations: 267.5 kB / 373.7 MB, free: 2.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0023/0.4469, allocations: 2.773 MB / 376.5 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001217/0.4482, allocations: 67.88 kB / 376.6 MB, free: 14.9 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.4483, allocations: 60 kB / 376.6 MB, free: 14.84 MB / 318.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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * 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 (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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009148/0.4492, allocations: 361.3 kB / 377 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003552/0.4496, allocations: 130.4 kB / 377.1 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001242/0.4508, allocations: 0.5529 MB / 377.6 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.4509, allocations: 11.98 kB / 377.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4509, allocations: 4 kB / 377.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.4509, allocations: 3.984 kB / 377.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003471/0.4544, allocations: 1.877 MB / 379.5 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.4544, allocations: 4 kB / 379.5 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004512/0.4548, allocations: 103.8 kB / 379.7 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001872/0.455, allocations: 45.7 kB / 379.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.062e-05/0.4551, allocations: 20.28 kB / 379.7 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002188/0.4573, allocations: 2.741 MB / 382.5 MB, free: 8.574 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.916e-06/0.4573, allocations: 11.98 kB / 382.5 MB, free: 8.562 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001775/0.4591, allocations: 0.9301 MB / 383.4 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008298/0.46, allocations: 251.5 kB / 383.6 MB, free: 7.297 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000367/0.4603, allocations: 23.94 kB / 383.7 MB, free: 7.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007662/0.4611, allocations: 27.97 kB / 383.7 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.4613, allocations: 55.81 kB / 383.7 MB, free: 7.191 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.485e-05/0.4613, allocations: 20 kB / 383.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001619/0.4629, allocations: 0.85 MB / 384.6 MB, free: 6.32 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4629, allocations: 0 / 384.6 MB, free: 6.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001586/0.4645, allocations: 300 kB / 384.9 MB, free: 6.027 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 (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,1,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.000388/0.4649, allocations: 135 kB / 385 MB, free: 5.887 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00198/0.4669, allocations: 0.941 MB / 386 MB, free: 4.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.467, allocations: 0.5 kB / 386 MB, free: 4.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007722/0.4677, allocations: 476.8 kB / 386.5 MB, free: 4.418 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00185/0.4696, allocations: 338.3 kB / 386.8 MB, free: 4.086 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005487/0.4751, allocations: 2.543 MB / 389.3 MB, free: 1.461 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001288/0.4764, allocations: 1.174 MB / 390.5 MB, free: 256 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009634/0.4774, allocations: 167.3 kB / 390.7 MB, free: 84 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002672/0.4777, allocations: 91.48 kB / 390.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of SimCode: time 1.974e-06/0.4777, allocations: 0 / 390.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of Templates: time 0.03535/0.5131, allocations: 14.94 MB / 405.7 MB, free: 1.039 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1)