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.0009464/0.0009464, allocations: 88.77 kB / 16.31 MB, free: 5.66 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.001081/0.001081, allocations: 182.8 kB / 17.21 MB, free: 5.578 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.668/1.668, allocations: 205.4 MB / 223.4 MB, free: 5.531 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.000555/0.0005551, allocations: 22.8 kB / 280.2 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.3111, allocations: 47.57 MB / 327.7 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01391/0.3251, allocations: 10.35 MB / 338.1 MB, free: 9.133 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009547/0.3347, allocations: 3.022 MB / 341.1 MB, free: 6.102 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003016/0.3378, allocations: 43.81 kB / 341.1 MB, free: 6.059 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003118/0.3409, allocations: 0.5204 MB / 341.7 MB, free: 5.535 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00403/0.345, allocations: 0.5467 MB / 342.2 MB, free: 4.984 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001598/0.3466, allocations: 243.7 kB / 342.5 MB, free: 4.746 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004433/0.3511, allocations: 2.012 MB / 344.5 MB, free: 2.723 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002329/0.3534, allocations: 0.683 MB / 345.1 MB, free: 2.02 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001962/0.3554, allocations: 0.665 MB / 345.8 MB, free: 1.352 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00195/0.3574, allocations: 0.7426 MB / 346.6 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006486/0.358, allocations: 100 kB / 346.7 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001187/0.3592, allocations: 144 kB / 346.8 MB, free: 376 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005657/0.3598, allocations: 290.6 kB / 347.1 MB, free: 84 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001095/0.3609, allocations: 392.8 kB / 347.5 MB, free: 15.69 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003095/0.364, allocations: 2.111 MB / 349.6 MB, free: 13.57 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.364, allocations: 0 / 349.6 MB, free: 13.57 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3641, allocations: 0 / 349.6 MB, free: 13.57 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001356/0.3642, allocations: 0 / 349.6 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.005033/0.3692, allocations: 1.775 MB / 351.3 MB, free: 11.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.111e-05/0.3693, allocations: 8.031 kB / 351.4 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001343/0.3707, allocations: 257.6 kB / 351.6 MB, free: 11.47 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002153/0.3728, allocations: 0.9848 MB / 352.6 MB, free: 10.45 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/0.3729, allocations: 119 kB / 352.7 MB, free: 10.33 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00021/0.3732, allocations: 167.8 kB / 352.9 MB, free: 10.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002786/0.376, allocations: 1.476 MB / 354.3 MB, free: 8.613 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.592e-05/0.376, allocations: 7.844 kB / 354.4 MB, free: 8.605 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001316/0.3762, allocations: 67.98 kB / 354.4 MB, free: 8.539 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.07e-05/0.3762, allocations: 40 kB / 354.5 MB, free: 8.5 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002029/0.3782, allocations: 0.9708 MB / 355.4 MB, free: 7.523 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01022/0.3885, allocations: 6.598 MB / 362 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.3896, allocations: 404.2 kB / 362.4 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000515/0.3901, allocations: 222.1 kB / 362.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.008e-05/0.3902, allocations: 4.438 kB / 362.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007114/0.391, allocations: 280.8 kB / 362.9 MB, free: 15.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.845e-06/0.391, allocations: 0 / 362.9 MB, free: 15.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004432/0.3954, allocations: 1.773 MB / 364.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.3956, allocations: 174.7 kB / 364.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002232/0.3978, allocations: 1.261 MB / 366.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.034e-05/0.3979, allocations: 37.7 kB / 366.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001035/0.3989, allocations: 0.8751 MB / 367 MB, free: 11.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002376/0.3992, allocations: 205.2 kB / 367.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.781e-05/0.3992, allocations: 20 kB / 367.3 MB, free: 11.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002031/0.3994, allocations: 353.9 kB / 367.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005552/0.4, allocations: 238.4 kB / 367.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009238/0.4009, allocations: 0.7995 MB / 368.6 MB, free: 9.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000779/0.4017, allocations: 395.6 kB / 369 MB, free: 9.086 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.88e-05/0.4018, allocations: 11.95 kB / 369 MB, free: 9.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002362/0.4041, allocations: 1.173 MB / 370.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.791e-05/0.4042, allocations: 37.7 kB / 370.2 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.575e-05/0.4043, allocations: 23.94 kB / 370.3 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003165/0.4046, allocations: 65.7 kB / 370.3 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000837/0.4054, allocations: 268 kB / 370.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002212/0.4077, allocations: 2.591 MB / 373.2 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001304/0.409, allocations: 68.14 kB / 373.2 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.369e-05/0.4091, allocations: 60 kB / 373.3 MB, free: 4.5 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.0008209/0.4099, allocations: 361.3 kB / 373.7 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003189/0.4102, allocations: 130.4 kB / 373.8 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001289/0.4115, allocations: 0.5644 MB / 374.4 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.4116, allocations: 12 kB / 374.4 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.4116, allocations: 0 / 374.4 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.4116, allocations: 0 / 374.4 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003598/0.4152, allocations: 1.885 MB / 376.2 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.4152, allocations: 4 kB / 376.3 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004261/0.4157, allocations: 104.4 kB / 376.4 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000178/0.4158, allocations: 53.62 kB / 376.4 MB, free: 1.254 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.309e-05/0.4159, allocations: 16 kB / 376.4 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001932/0.4178, allocations: 2.548 MB / 379 MB, free: 14.42 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.4179, allocations: 7.938 kB / 379 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00164/0.4195, allocations: 0.938 MB / 379.9 MB, free: 13.4 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006138/0.4201, allocations: 251.5 kB / 380.2 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003897/0.4205, allocations: 19.94 kB / 380.2 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007058/0.4212, allocations: 31.97 kB / 380.2 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.4214, allocations: 55.89 kB / 380.3 MB, free: 13.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.823e-05/0.4214, allocations: 23.98 kB / 380.3 MB, free: 13.01 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001745/0.4232, allocations: 0.8305 MB / 381.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4232, allocations: 3.938 kB / 381.1 MB, free: 12.17 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001635/0.4248, allocations: 307.9 kB / 381.4 MB, free: 11.87 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.000313/0.4252, allocations: 131.1 kB / 381.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001971/0.4271, allocations: 0.9333 MB / 382.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.4272, allocations: 4 kB / 382.5 MB, free: 10.76 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007526/0.4279, allocations: 481.9 kB / 383 MB, free: 10.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001987/0.4299, allocations: 321 kB / 383.3 MB, free: 9.949 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005772/0.4357, allocations: 3.079 MB / 386.4 MB, free: 6.789 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001145/0.4369, allocations: 1.178 MB / 387.5 MB, free: 5.582 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00086/0.4378, allocations: 167.3 kB / 387.7 MB, free: 5.414 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002567/0.438, allocations: 87.38 kB / 387.8 MB, free: 5.328 MB / 318.1 MB Notification: Performance of SimCode: time 1.703e-06/0.438, allocations: 0 / 387.8 MB, free: 5.328 MB / 318.1 MB Notification: Performance of Templates: time 0.03089/0.4689, allocations: 13.74 MB / 401.5 MB, free: 7.57 MB / 334.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)