Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000913/0.000913, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.0009616/0.0009617, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.654/1.654, allocations: 205.4 MB / 223.4 MB, free: 5.777 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.0007041/0.0007042, allocations: 14.81 kB / 280.2 MB, free: 13.05 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3011, allocations: 47.59 MB / 327.7 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01112/0.3123, allocations: 10.7 MB / 338.4 MB, free: 8.797 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006829/0.3191, allocations: 3.123 MB / 341.6 MB, free: 5.664 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001174/0.3204, allocations: 35.94 kB / 341.6 MB, free: 5.629 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001389/0.3218, allocations: 0.5241 MB / 342.1 MB, free: 5.102 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00154/0.3233, allocations: 0.6049 MB / 342.7 MB, free: 4.492 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006354/0.3239, allocations: 235.8 kB / 343 MB, free: 4.262 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002153/0.3261, allocations: 2.167 MB / 345.1 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009078/0.327, allocations: 0.6872 MB / 345.8 MB, free: 1.375 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001103/0.3281, allocations: 0.7194 MB / 346.5 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007963/0.329, allocations: 0.8049 MB / 347.3 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001559/0.3291, allocations: 108 kB / 347.4 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004033/0.3295, allocations: 144 kB / 347.6 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003467/0.3299, allocations: 318.5 kB / 347.9 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003468/0.3303, allocations: 404.7 kB / 348.3 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001824/0.3321, allocations: 2.212 MB / 350.5 MB, free: 12.66 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3321, allocations: 8 kB / 350.5 MB, free: 12.66 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3321, allocations: 0 / 350.5 MB, free: 12.66 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.013e-05/0.3322, allocations: 0 / 350.5 MB, free: 12.66 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003229/0.3354, allocations: 1.86 MB / 352.4 MB, free: 10.74 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.3354, allocations: 16.02 kB / 352.4 MB, free: 10.72 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008032/0.3362, allocations: 285.4 kB / 352.7 MB, free: 10.44 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001802/0.3381, allocations: 1.06 MB / 353.7 MB, free: 9.324 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.948e-05/0.3382, allocations: 111.1 kB / 353.8 MB, free: 9.215 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002386/0.3384, allocations: 163.9 kB / 354 MB, free: 9.055 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002568/0.341, allocations: 1.504 MB / 355.5 MB, free: 7.488 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.425e-05/0.341, allocations: 7.906 kB / 355.5 MB, free: 7.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.3412, allocations: 67.94 kB / 355.6 MB, free: 7.414 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.985e-05/0.3412, allocations: 36 kB / 355.6 MB, free: 7.379 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001993/0.3432, allocations: 1.073 MB / 356.7 MB, free: 6.301 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007449/0.3507, allocations: 6.304 MB / 363 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0014/0.3521, allocations: 0.631 MB / 363.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008301/0.3529, allocations: 466.9 kB / 364.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.651e-05/0.353, allocations: 16.44 kB / 364.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.353, allocations: 43.08 kB / 364.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.304e-06/0.353, allocations: 0 / 364.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.00446/0.3575, allocations: 2.454 MB / 366.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.224e-05/0.3576, allocations: 111.5 kB / 366.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001647/0.3592, allocations: 1.29 MB / 368 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.056e-05/0.3593, allocations: 41.7 kB / 368 MB, free: 10.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005488/0.3598, allocations: 0.8492 MB / 368.9 MB, free: 9.641 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001671/0.36, allocations: 264.2 kB / 369.1 MB, free: 9.379 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.881e-05/0.36, allocations: 24 kB / 369.2 MB, free: 9.355 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.3602, allocations: 357.9 kB / 369.5 MB, free: 9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005302/0.3607, allocations: 290.5 kB / 369.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007812/0.3615, allocations: 0.7421 MB / 370.5 MB, free: 7.758 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006684/0.3622, allocations: 410.9 kB / 370.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.3622, allocations: 4 kB / 370.9 MB, free: 7.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002118/0.3643, allocations: 1.287 MB / 372.2 MB, free: 6.047 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.3644, allocations: 12 kB / 372.2 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/0.3644, allocations: 16 kB / 372.2 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000515/0.3649, allocations: 146.7 kB / 372.4 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000806/0.3657, allocations: 259.5 kB / 372.6 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003423/0.3692, allocations: 4.317 MB / 377 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008467/0.37, allocations: 67.88 kB / 377 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.373e-05/0.3701, allocations: 56.2 kB / 377.1 MB, free: 0.7812 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0006072/0.3707, allocations: 357.4 kB / 377.4 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.3709, allocations: 138.3 kB / 377.6 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001668/0.3725, allocations: 0.8608 MB / 378.4 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.3726, allocations: 12 kB / 378.4 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.247e-06/0.3726, allocations: 0 / 378.4 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.3726, allocations: 7.984 kB / 378.4 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00345/0.376, allocations: 2.365 MB / 380.8 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/0.3761, allocations: 4 kB / 380.8 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005185/0.3766, allocations: 127.8 kB / 380.9 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004156/0.377, allocations: 154.8 kB / 381.1 MB, free: 12.6 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.489e-05/0.3771, allocations: 20 kB / 381.1 MB, free: 12.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003794/0.3809, allocations: 4.457 MB / 385.6 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.3809, allocations: 4 kB / 385.6 MB, free: 7.719 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002218/0.3831, allocations: 1.346 MB / 386.9 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004694/0.3836, allocations: 287.4 kB / 387.2 MB, free: 6 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001442/0.3838, allocations: 16 kB / 387.2 MB, free: 5.984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005415/0.3843, allocations: 43.97 kB / 387.3 MB, free: 5.941 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.3844, allocations: 68.52 kB / 387.3 MB, free: 5.875 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-05/0.3845, allocations: 20 kB / 387.3 MB, free: 5.855 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00125/0.3857, allocations: 0.8625 MB / 388.2 MB, free: 4.992 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.3857, allocations: 0 / 388.2 MB, free: 4.992 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001195/0.3869, allocations: 328 kB / 388.5 MB, free: 4.672 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002372/0.3872, allocations: 139 kB / 388.7 MB, free: 4.523 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.3889, allocations: 1.133 MB / 389.8 MB, free: 3.355 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3889, allocations: 4.062 kB / 389.8 MB, free: 3.352 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000931/0.3899, allocations: 0.7147 MB / 390.5 MB, free: 2.594 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001476/0.3914, allocations: 356.9 kB / 390.9 MB, free: 2.242 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005101/0.3965, allocations: 3.571 MB / 394.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007413/0.3972, allocations: 1.214 MB / 395.6 MB, free: 13.35 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006354/0.3979, allocations: 171.6 kB / 395.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002012/0.3981, allocations: 91.42 kB / 395.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3981, allocations: 4 kB / 395.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of Templates: time 0.02809/0.4262, allocations: 16.15 MB / 412.1 MB, free: 12.9 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)