Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001451/0.001451, allocations: 107.8 kB / 17.06 MB, free: 6.094 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.001779/0.001779, allocations: 195 kB / 18 MB, free: 5.172 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.825/1.825, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.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.001337/0.001337, allocations: 51.92 kB / 327.9 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.129, allocations: 46.62 MB / 374.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.3313/0.4603, allocations: 11.69 MB / 386.2 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009265/0.4697, allocations: 3.221 MB / 389.4 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003757/0.4736, allocations: 38.69 kB / 389.4 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002955/0.4766, allocations: 0.6401 MB / 390.1 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004317/0.4809, allocations: 0.6709 MB / 390.8 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001888/0.4828, allocations: 401 kB / 391.1 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005628/0.4885, allocations: 2.247 MB / 393.4 MB, free: 2.477 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001667/0.4901, allocations: 1.001 MB / 394.4 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002157/0.4923, allocations: 0.8467 MB / 395.2 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001531/0.4939, allocations: 0.9075 MB / 396.1 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003969/0.4943, allocations: 217.6 kB / 396.4 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007711/0.495, allocations: 253.6 kB / 396.6 MB, free: 1.016 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004613/0.4955, allocations: 431.3 kB / 397 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001194/0.4967, allocations: 1.021 MB / 398 MB, free: 48 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005196/0.5019, allocations: 2.68 MB / 400.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.234e-05/0.502, allocations: 0 / 400.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.502, allocations: 0 / 400.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001065/0.5021, allocations: 0 / 400.7 MB, free: 15.03 MB / 334.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.005496/0.5076, allocations: 2.061 MB / 402.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.5077, allocations: 9.625 kB / 402.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00109/0.5088, allocations: 257.6 kB / 403.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002436/0.5112, allocations: 1.057 MB / 404.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/0.5114, allocations: 113.7 kB / 404.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002833/0.5117, allocations: 159.7 kB / 404.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003328/0.515, allocations: 1.486 MB / 405.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.127e-05/0.5151, allocations: 12.45 kB / 405.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001499/0.5152, allocations: 62.5 kB / 405.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.869e-05/0.5153, allocations: 37.94 kB / 406 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00221/0.5175, allocations: 0.9754 MB / 406.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01118/0.5287, allocations: 6.505 MB / 413.5 MB, free: 5.547 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.53, allocations: 411.2 kB / 413.9 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005682/0.5306, allocations: 217.2 kB / 414.1 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.499e-05/0.5306, allocations: 6.312 kB / 414.1 MB, free: 5.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007177/0.5314, allocations: 272.5 kB / 414.3 MB, free: 5.035 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 4.298e-06/0.5314, allocations: 0 / 414.3 MB, free: 5.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.004661/0.536, allocations: 1.759 MB / 416.1 MB, free: 3.824 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001376/0.5362, allocations: 163.7 kB / 416.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002131/0.5383, allocations: 1.273 MB / 417.5 MB, free: 2.922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.181e-05/0.5384, allocations: 36.89 kB / 417.6 MB, free: 2.883 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008025/0.5392, allocations: 0.8712 MB / 418.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001781/0.5394, allocations: 212.6 kB / 418.6 MB, free: 1.918 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003374/0.5397, allocations: 221.2 kB / 418.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.5399, allocations: 356.8 kB / 419.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000528/0.5405, allocations: 232.7 kB / 419.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001204/0.5417, allocations: 0.8001 MB / 420.2 MB, free: 436 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002036/0.5437, allocations: 1.118 MB / 421.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.689e-05/0.5438, allocations: 5.75 kB / 421.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002707/0.5465, allocations: 1.174 MB / 422.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.289e-05/0.5466, allocations: 37.7 kB / 422.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-05/0.5466, allocations: 20 kB / 422.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003536/0.547, allocations: 66.27 kB / 422.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008461/0.5478, allocations: 271.5 kB / 422.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002739/0.5506, allocations: 2.78 MB / 425.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/0.5521, allocations: 71.78 kB / 425.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.772e-05/0.5522, allocations: 60 kB / 425.8 MB, free: 10.73 MB / 350.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.0009139/0.5532, allocations: 357.4 kB / 426.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001872/0.5534, allocations: 130.4 kB / 426.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001157/0.5545, allocations: 0.5528 MB / 426.9 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.5545, allocations: 8 kB / 426.9 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.5546, allocations: 0 / 426.9 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.5546, allocations: 3.984 kB / 426.9 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003272/0.5578, allocations: 1.874 MB / 428.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.5579, allocations: 4 kB / 428.7 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004196/0.5583, allocations: 107.8 kB / 428.9 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001679/0.5585, allocations: 37.7 kB / 428.9 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.291e-05/0.5585, allocations: 16 kB / 428.9 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002574/0.5611, allocations: 2.757 MB / 431.7 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.298e-06/0.5611, allocations: 7.938 kB / 431.7 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002143/0.5633, allocations: 0.9162 MB / 432.6 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007981/0.5641, allocations: 255.4 kB / 432.8 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002933/0.5644, allocations: 16 kB / 432.9 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006575/0.5651, allocations: 31.97 kB / 432.9 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.5652, allocations: 63.59 kB / 432.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.385e-05/0.5653, allocations: 20 kB / 433 MB, free: 3.074 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001311/0.5666, allocations: 0.8422 MB / 433.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5666, allocations: 3.938 kB / 433.8 MB, free: 2.227 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001695/0.5683, allocations: 312 kB / 434.1 MB, free: 1.922 MB / 350.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.0003732/0.5687, allocations: 131 kB / 434.2 MB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002157/0.5708, allocations: 0.9213 MB / 435.2 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.5709, allocations: 0 / 435.2 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000817/0.5717, allocations: 475.1 kB / 435.6 MB, free: 344 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001646/0.5733, allocations: 334.1 kB / 436 MB, free: 16 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005368/0.5787, allocations: 2.512 MB / 438.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/0.5798, allocations: 1.178 MB / 439.6 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006628/0.5804, allocations: 175.3 kB / 439.8 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001841/0.5806, allocations: 83.44 kB / 439.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of SimCode: time 1.242e-06/0.5806, allocations: 0 / 439.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of Templates: time 0.03294/0.6136, allocations: 15.56 MB / 455.5 MB, free: 12.38 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1)