Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.0009687/0.0009686, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0008717/0.0008717, allocations: 168.7 kB / 15.95 MB, free: 204 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.699/1.699, allocations: 205.4 MB / 222.1 MB, free: 5.633 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.000471/0.0004712, allocations: 16 kB / 278.9 MB, free: 12.8 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.275, allocations: 47.59 MB / 326.5 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01154/0.2866, allocations: 10.71 MB / 337.2 MB, free: 8.754 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00787/0.2946, allocations: 3.123 MB / 340.3 MB, free: 5.621 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00286/0.2975, allocations: 35.94 kB / 340.4 MB, free: 5.586 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00243/0.2999, allocations: 0.5164 MB / 340.9 MB, free: 5.066 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003112/0.3031, allocations: 0.6049 MB / 341.5 MB, free: 4.457 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001282/0.3044, allocations: 243.7 kB / 341.7 MB, free: 4.219 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004123/0.3085, allocations: 2.171 MB / 343.9 MB, free: 2.035 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001733/0.3103, allocations: 0.6833 MB / 344.6 MB, free: 1.332 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00175/0.312, allocations: 0.7194 MB / 345.3 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001625/0.3137, allocations: 0.8049 MB / 346.1 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005816/0.3143, allocations: 108 kB / 346.2 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001349/0.3156, allocations: 144 kB / 346.3 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006537/0.3163, allocations: 314.5 kB / 346.6 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009538/0.3173, allocations: 408.7 kB / 347 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002759/0.32, allocations: 2.216 MB / 349.3 MB, free: 12.62 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.32, allocations: 4 kB / 349.3 MB, free: 12.61 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.32, allocations: 0 / 349.3 MB, free: 12.61 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001199/0.3202, allocations: 0 / 349.3 MB, free: 12.61 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.004533/0.3247, allocations: 1.864 MB / 351.1 MB, free: 10.69 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.3248, allocations: 8.031 kB / 351.1 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001222/0.326, allocations: 289.4 kB / 351.4 MB, free: 10.4 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002414/0.3284, allocations: 1.06 MB / 352.5 MB, free: 9.281 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.298e-05/0.3285, allocations: 111.1 kB / 352.6 MB, free: 9.172 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002184/0.3288, allocations: 159.9 kB / 352.7 MB, free: 9.016 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002861/0.3316, allocations: 1.508 MB / 354.2 MB, free: 7.445 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.456e-05/0.3317, allocations: 7.906 kB / 354.3 MB, free: 7.438 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001256/0.3318, allocations: 64 kB / 354.3 MB, free: 7.375 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.694e-05/0.3319, allocations: 43.94 kB / 354.4 MB, free: 7.332 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002076/0.3339, allocations: 1.061 MB / 355.4 MB, free: 6.266 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00837/0.3423, allocations: 6.316 MB / 361.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.3438, allocations: 0.6232 MB / 362.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008611/0.3447, allocations: 466.9 kB / 362.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.692e-05/0.3448, allocations: 12.7 kB / 362.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/0.3448, allocations: 47.02 kB / 362.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.235e-06/0.3448, allocations: 0 / 362.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.004962/0.3498, allocations: 2.454 MB / 365.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.534e-05/0.3499, allocations: 111.5 kB / 365.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001691/0.3516, allocations: 1.298 MB / 366.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.53e-05/0.3516, allocations: 37.7 kB / 366.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006367/0.3523, allocations: 0.8414 MB / 367.6 MB, free: 9.605 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001998/0.3525, allocations: 268.2 kB / 367.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.304e-05/0.3525, allocations: 24 kB / 367.9 MB, free: 9.316 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.3527, allocations: 353.9 kB / 368.2 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000564/0.3533, allocations: 290.5 kB / 368.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008607/0.3541, allocations: 0.7421 MB / 369.3 MB, free: 7.723 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007072/0.3549, allocations: 415 kB / 369.7 MB, free: 7.316 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.3549, allocations: 4 kB / 369.7 MB, free: 7.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002176/0.3571, allocations: 1.291 MB / 371 MB, free: 6.004 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.3571, allocations: 12 kB / 371 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.012e-05/0.3571, allocations: 16 kB / 371 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004958/0.3576, allocations: 150.9 kB / 371.1 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007958/0.3584, allocations: 255.6 kB / 371.4 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003556/0.362, allocations: 4.313 MB / 375.7 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008579/0.3629, allocations: 67.94 kB / 375.8 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.751e-05/0.3629, allocations: 56 kB / 375.8 MB, free: 0.7422 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.000643/0.3636, allocations: 353.4 kB / 376.2 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.3638, allocations: 138.3 kB / 376.3 MB, free: 256 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/0.3655, allocations: 0.8725 MB / 377.2 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.3655, allocations: 8 kB / 377.2 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3655, allocations: 0 / 377.2 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3655, allocations: 3.984 kB / 377.2 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003634/0.3692, allocations: 2.361 MB / 379.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.111e-05/0.3692, allocations: 7.984 kB / 379.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005884/0.3698, allocations: 132.3 kB / 379.7 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004387/0.3703, allocations: 166.2 kB / 379.9 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.643e-05/0.3703, allocations: 23.98 kB / 379.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003842/0.3742, allocations: 4.434 MB / 384.3 MB, free: 7.688 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.3742, allocations: 7.938 kB / 384.3 MB, free: 7.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002381/0.3766, allocations: 1.35 MB / 385.7 MB, free: 6.258 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004872/0.3771, allocations: 275.4 kB / 385.9 MB, free: 5.969 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001462/0.3772, allocations: 19.98 kB / 386 MB, free: 5.949 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005618/0.3778, allocations: 47.97 kB / 386 MB, free: 5.902 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.3779, allocations: 64.38 kB / 386.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.104e-05/0.378, allocations: 24 kB / 386.1 MB, free: 5.816 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001272/0.3792, allocations: 0.8625 MB / 387 MB, free: 4.953 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.3793, allocations: 0 / 387 MB, free: 4.953 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001229/0.3805, allocations: 332 kB / 387.3 MB, free: 4.629 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.0002526/0.3807, allocations: 135.1 kB / 387.4 MB, free: 4.484 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00186/0.3826, allocations: 1.132 MB / 388.5 MB, free: 3.316 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.3826, allocations: 4 kB / 388.5 MB, free: 3.312 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001009/0.3837, allocations: 0.7153 MB / 389.3 MB, free: 2.555 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001515/0.3852, allocations: 357 kB / 389.6 MB, free: 2.203 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005368/0.3906, allocations: 3.567 MB / 393.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008066/0.3914, allocations: 1.214 MB / 394.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000672/0.3921, allocations: 175.6 kB / 394.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002148/0.3923, allocations: 87.42 kB / 394.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3923, allocations: 0 / 394.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of Templates: time 0.031/0.4233, allocations: 16.15 MB / 410.8 MB, free: 12.87 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)