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.001344/0.00135, 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.001493/0.001494, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.627/1.627, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.001461/0.001461, allocations: 59.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3356/0.3371, allocations: 46.63 MB / 325.3 MB, free: 1.871 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01418/0.3513, allocations: 11.7 MB / 337 MB, free: 8.195 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006922/0.3583, allocations: 3.215 MB / 340.2 MB, free: 4.969 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.3596, allocations: 43.88 kB / 340.3 MB, free: 4.926 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001695/0.3613, allocations: 0.6324 MB / 340.9 MB, free: 4.289 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001638/0.363, allocations: 0.6743 MB / 341.6 MB, free: 3.609 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007357/0.3637, allocations: 399.5 kB / 342 MB, free: 3.219 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002233/0.3659, allocations: 2.23 MB / 344.2 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001344/0.3673, allocations: 1.001 MB / 345.2 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001155/0.3685, allocations: 0.8249 MB / 346 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001012/0.3695, allocations: 0.91 MB / 346.9 MB, free: 14.19 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002462/0.3697, allocations: 220 kB / 347.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004202/0.3702, allocations: 255.9 kB / 347.4 MB, free: 13.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003384/0.3705, allocations: 430.4 kB / 347.8 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009138/0.3714, allocations: 1.023 MB / 348.8 MB, free: 12.28 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002493/0.3739, allocations: 2.644 MB / 351.5 MB, free: 9.625 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.374, allocations: 7.938 kB / 351.5 MB, free: 9.617 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.374, allocations: 0 / 351.5 MB, free: 9.617 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.21e-05/0.374, allocations: 0 / 351.5 MB, free: 9.617 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.003431/0.3774, allocations: 2.06 MB / 353.6 MB, free: 7.492 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.3775, allocations: 16.03 kB / 353.6 MB, free: 7.477 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008437/0.3783, allocations: 250.5 kB / 353.8 MB, free: 7.23 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001455/0.3798, allocations: 1.024 MB / 354.8 MB, free: 6.164 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.841e-05/0.3799, allocations: 111.5 kB / 354.9 MB, free: 6.055 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002247/0.3802, allocations: 175.8 kB / 355.1 MB, free: 5.883 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002504/0.3827, allocations: 1.476 MB / 356.6 MB, free: 4.332 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.853e-05/0.3827, allocations: 11.84 kB / 356.6 MB, free: 4.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/0.3829, allocations: 64 kB / 356.7 MB, free: 4.258 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.673e-05/0.3829, allocations: 40 kB / 356.7 MB, free: 4.219 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001872/0.3848, allocations: 0.9747 MB / 357.7 MB, free: 3.238 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008693/0.3935, allocations: 6.574 MB / 364.3 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008726/0.3944, allocations: 396.2 kB / 364.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000441/0.3949, allocations: 218.1 kB / 364.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.948e-05/0.3949, allocations: 8.438 kB / 364.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006667/0.3956, allocations: 276.7 kB / 365.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 6.151e-06/0.3956, allocations: 0 / 365.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003468/0.3991, allocations: 1.758 MB / 366.9 MB, free: 9.543 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.3992, allocations: 166.8 kB / 367.1 MB, free: 9.344 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001675/0.4009, allocations: 1.281 MB / 368.3 MB, free: 8.047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.474e-05/0.4009, allocations: 37.7 kB / 368.4 MB, free: 8.004 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006366/0.4016, allocations: 0.8712 MB / 369.2 MB, free: 7.121 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/0.4017, allocations: 209.2 kB / 369.4 MB, free: 6.914 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002871/0.402, allocations: 214.7 kB / 369.7 MB, free: 6.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.4022, allocations: 349.9 kB / 370 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004758/0.4027, allocations: 234.5 kB / 370.2 MB, free: 6.121 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008748/0.4036, allocations: 0.8034 MB / 371 MB, free: 5.039 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001428/0.405, allocations: 1.118 MB / 372.2 MB, free: 3.648 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.435e-06/0.4051, allocations: 4 kB / 372.2 MB, free: 3.645 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001876/0.4069, allocations: 1.173 MB / 373.3 MB, free: 2.449 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.442e-05/0.407, allocations: 45.7 kB / 373.4 MB, free: 2.398 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.324e-05/0.4071, allocations: 23.97 kB / 373.4 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002654/0.4073, allocations: 65.64 kB / 373.5 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007878/0.4081, allocations: 267.6 kB / 373.7 MB, free: 2.043 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002235/0.4104, allocations: 2.776 MB / 376.5 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009271/0.4113, allocations: 67.88 kB / 376.6 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.359e-05/0.4114, allocations: 60 kB / 376.6 MB, free: 14.86 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.0006334/0.412, allocations: 361.3 kB / 377 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002008/0.4122, allocations: 126.4 kB / 377.1 MB, free: 14.37 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001095/0.4133, allocations: 0.5528 MB / 377.7 MB, free: 13.81 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.4134, allocations: 7.938 kB / 377.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.4134, allocations: 4 kB / 377.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-06/0.4134, allocations: 3.984 kB / 377.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002999/0.4164, allocations: 1.878 MB / 379.5 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.4164, allocations: 4 kB / 379.5 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004161/0.4168, allocations: 107.8 kB / 379.7 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000153/0.417, allocations: 41.7 kB / 379.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.158e-05/0.4171, allocations: 19.98 kB / 379.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002046/0.4191, allocations: 2.753 MB / 382.5 MB, free: 8.59 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-05/0.4191, allocations: 4 kB / 382.5 MB, free: 8.586 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001486/0.4206, allocations: 0.9261 MB / 383.4 MB, free: 7.59 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004706/0.4211, allocations: 251.5 kB / 383.6 MB, free: 7.324 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002132/0.4213, allocations: 19.98 kB / 383.7 MB, free: 7.305 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005598/0.4219, allocations: 31.98 kB / 383.7 MB, free: 7.273 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.422, allocations: 55.81 kB / 383.7 MB, free: 7.219 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.067e-05/0.4221, allocations: 20 kB / 383.8 MB, free: 7.199 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001354/0.4235, allocations: 0.8422 MB / 384.6 MB, free: 6.355 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4235, allocations: 4 kB / 384.6 MB, free: 6.352 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001365/0.4248, allocations: 300 kB / 384.9 MB, free: 6.059 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.0003114/0.4252, allocations: 135 kB / 385 MB, free: 5.918 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001837/0.427, allocations: 0.9414 MB / 386 MB, free: 4.941 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.427, allocations: 0 / 386 MB, free: 4.941 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007998/0.4278, allocations: 480.9 kB / 386.4 MB, free: 4.445 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001667/0.4295, allocations: 341.6 kB / 386.8 MB, free: 4.109 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005357/0.4349, allocations: 2.539 MB / 389.3 MB, free: 1.488 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001007/0.4359, allocations: 1.174 MB / 390.5 MB, free: 284 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008137/0.4367, allocations: 171.3 kB / 390.7 MB, free: 108 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002099/0.437, allocations: 83.44 kB / 390.7 MB, free: 28 kB / 318.1 MB Notification: Performance of SimCode: time 7.41e-07/0.437, allocations: 4 kB / 390.7 MB, free: 24 kB / 318.1 MB Notification: Performance of Templates: time 0.03636/0.4733, allocations: 14.93 MB / 405.7 MB, free: 1.07 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)