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.000983/0.0009829, allocations: 84.38 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.001064/0.001065, 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.564/1.564, allocations: 205.4 MB / 222.1 MB, free: 5.641 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.0007762/0.0007764, allocations: 18.81 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3447, allocations: 47.58 MB / 326.5 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01038/0.3551, allocations: 10.35 MB / 336.8 MB, free: 9.125 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005959/0.3611, allocations: 3.026 MB / 339.9 MB, free: 6.09 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008268/0.3619, allocations: 39.88 kB / 339.9 MB, free: 6.051 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00127/0.3632, allocations: 0.5126 MB / 340.4 MB, free: 5.535 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001344/0.3646, allocations: 0.5505 MB / 341 MB, free: 4.98 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005948/0.3652, allocations: 247.8 kB / 341.2 MB, free: 4.738 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001861/0.3671, allocations: 2.02 MB / 343.2 MB, free: 2.707 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009709/0.368, allocations: 0.6713 MB / 343.9 MB, free: 2.016 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000818/0.3689, allocations: 0.665 MB / 344.6 MB, free: 1.348 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008335/0.3697, allocations: 0.7503 MB / 345.3 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001638/0.3699, allocations: 100 kB / 345.4 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003376/0.3702, allocations: 143.9 kB / 345.5 MB, free: 364 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002434/0.3705, allocations: 294.6 kB / 345.8 MB, free: 68 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003552/0.3708, allocations: 388.8 kB / 346.2 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001775/0.3726, allocations: 2.099 MB / 348.3 MB, free: 13.57 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.056e-06/0.3726, allocations: 8 kB / 348.3 MB, free: 13.57 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3726, allocations: 0 / 348.3 MB, free: 13.57 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.077e-05/0.3727, allocations: 0 / 348.3 MB, free: 13.57 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.002822/0.3755, allocations: 1.764 MB / 350.1 MB, free: 11.74 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.3756, allocations: 15.97 kB / 350.1 MB, free: 11.72 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007186/0.3763, allocations: 257.6 kB / 350.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001378/0.3777, allocations: 0.9848 MB / 351.3 MB, free: 10.44 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.3778, allocations: 119.1 kB / 351.4 MB, free: 10.32 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001894/0.378, allocations: 159.9 kB / 351.6 MB, free: 10.17 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002302/0.3803, allocations: 1.476 MB / 353.1 MB, free: 8.617 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.461e-05/0.3803, allocations: 15.84 kB / 353.1 MB, free: 8.602 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001201/0.3805, allocations: 64 kB / 353.2 MB, free: 8.539 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.205e-05/0.3805, allocations: 39.98 kB / 353.2 MB, free: 8.5 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001649/0.3822, allocations: 0.9785 MB / 354.2 MB, free: 7.516 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006946/0.3891, allocations: 6.594 MB / 360.8 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007323/0.3899, allocations: 404.1 kB / 361.2 MB, free: 168 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003995/0.3903, allocations: 230.1 kB / 361.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.855e-05/0.3903, allocations: 16.3 kB / 361.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005002/0.3908, allocations: 272.8 kB / 361.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.834e-06/0.3909, allocations: 0 / 361.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.002791/0.3937, allocations: 1.777 MB / 363.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.561e-05/0.3937, allocations: 166.8 kB / 363.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001541/0.3953, allocations: 1.261 MB / 364.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.699e-05/0.3953, allocations: 37.7 kB / 364.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006676/0.396, allocations: 0.8751 MB / 365.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000161/0.3962, allocations: 201.2 kB / 366 MB, free: 11.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.779e-05/0.3962, allocations: 28 kB / 366 MB, free: 11.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.3964, allocations: 349.9 kB / 366.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004076/0.3968, allocations: 234.4 kB / 366.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000827/0.3976, allocations: 0.7956 MB / 367.4 MB, free: 9.477 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005859/0.3982, allocations: 403.6 kB / 367.8 MB, free: 9.074 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.016e-06/0.3982, allocations: 7.953 kB / 367.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001702/0.3999, allocations: 1.173 MB / 368.9 MB, free: 7.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.978e-05/0.4, allocations: 41.7 kB / 369 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.4, allocations: 16 kB / 369 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002152/0.4003, allocations: 73.69 kB / 369.1 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007248/0.401, allocations: 268 kB / 369.3 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001671/0.4027, allocations: 2.587 MB / 371.9 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006817/0.4034, allocations: 72.12 kB / 372 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-05/0.4034, allocations: 68 kB / 372.1 MB, free: 4.48 MB / 302.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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005206/0.404, allocations: 357.3 kB / 372.4 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001402/0.4041, allocations: 126.4 kB / 372.5 MB, free: 3.996 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009505/0.4051, allocations: 0.5683 MB / 373.1 MB, free: 3.422 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.4051, allocations: 12 kB / 373.1 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/0.4051, allocations: 0 / 373.1 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.4051, allocations: 3.984 kB / 373.1 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002409/0.4075, allocations: 1.877 MB / 375 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.281e-06/0.4076, allocations: 4 kB / 375 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003938/0.408, allocations: 112.3 kB / 375.1 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00013/0.4081, allocations: 45.7 kB / 375.2 MB, free: 1.242 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.545e-05/0.4081, allocations: 19.94 kB / 375.2 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001602/0.4098, allocations: 2.552 MB / 377.7 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/0.4098, allocations: 7.938 kB / 377.7 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.4111, allocations: 0.9341 MB / 378.7 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003075/0.4114, allocations: 255.5 kB / 378.9 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001394/0.4115, allocations: 15.98 kB / 378.9 MB, free: 13.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004735/0.412, allocations: 32.11 kB / 379 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.4121, allocations: 67.81 kB / 379 MB, free: 13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.868e-05/0.4122, allocations: 16 kB / 379 MB, free: 12.99 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001059/0.4132, allocations: 0.8344 MB / 379.9 MB, free: 12.15 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4132, allocations: 0 / 379.9 MB, free: 12.15 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009498/0.4142, allocations: 304 kB / 380.2 MB, free: 11.86 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002249/0.4144, allocations: 139 kB / 380.3 MB, free: 11.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001381/0.4158, allocations: 0.9294 MB / 381.2 MB, free: 10.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4158, allocations: 0 / 381.2 MB, free: 10.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006467/0.4165, allocations: 478 kB / 381.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001395/0.4179, allocations: 324.9 kB / 382 MB, free: 9.934 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004287/0.4222, allocations: 3.082 MB / 385.1 MB, free: 6.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007772/0.423, allocations: 1.182 MB / 386.3 MB, free: 5.559 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006193/0.4236, allocations: 167.3 kB / 386.5 MB, free: 5.391 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/0.4238, allocations: 83.44 kB / 386.5 MB, free: 5.309 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4238, allocations: 0 / 386.5 MB, free: 5.309 MB / 318.1 MB Notification: Performance of Templates: time 0.02546/0.4492, allocations: 13.73 MB / 400.3 MB, free: 7.559 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)