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.001267/0.001267, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001633/0.001633, allocations: 191.8 kB / 16.14 MB, free: 6.707 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.708/1.708, allocations: 205.1 MB / 222 MB, free: 4.762 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.001206/0.001206, allocations: 43.94 kB / 278.1 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3793/0.3806, allocations: 46.62 MB / 324.7 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01616/0.3968, allocations: 11.61 MB / 336.3 MB, free: 8.504 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008679/0.4055, allocations: 3.192 MB / 339.5 MB, free: 5.301 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003692/0.4093, allocations: 39.88 kB / 339.5 MB, free: 5.262 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002801/0.4122, allocations: 0.5477 MB / 340.1 MB, free: 4.711 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003769/0.416, allocations: 0.5857 MB / 340.7 MB, free: 4.121 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00157/0.4175, allocations: 343.8 kB / 341 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004545/0.4221, allocations: 2.133 MB / 343.1 MB, free: 1.641 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001824/0.424, allocations: 0.8423 MB / 344 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002107/0.4261, allocations: 0.7505 MB / 344.7 MB, free: 8 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002347/0.4285, allocations: 0.871 MB / 345.6 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003087/0.4288, allocations: 132 kB / 345.7 MB, free: 15 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006485/0.4294, allocations: 172 kB / 345.9 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003591/0.4298, allocations: 346.5 kB / 346.2 MB, free: 14.49 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001215/0.431, allocations: 0.9405 MB / 347.2 MB, free: 13.55 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002806/0.4339, allocations: 2.577 MB / 349.7 MB, free: 10.96 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.225e-05/0.4339, allocations: 0 / 349.7 MB, free: 10.96 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.582e-06/0.4339, allocations: 0 / 349.7 MB, free: 10.96 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.494e-05/0.434, allocations: 3.938 kB / 349.7 MB, free: 10.96 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.004254/0.4382, allocations: 2.06 MB / 351.8 MB, free: 8.836 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.4383, allocations: 8.031 kB / 351.8 MB, free: 8.828 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008625/0.4392, allocations: 262.5 kB / 352.1 MB, free: 8.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001869/0.441, allocations: 1.02 MB / 353.1 MB, free: 7.508 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.4412, allocations: 111.5 kB / 353.2 MB, free: 7.398 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002308/0.4414, allocations: 159.8 kB / 353.4 MB, free: 7.242 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003007/0.4444, allocations: 1.491 MB / 354.8 MB, free: 5.676 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.728e-05/0.4445, allocations: 11.84 kB / 354.9 MB, free: 5.664 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001307/0.4447, allocations: 71.94 kB / 354.9 MB, free: 5.594 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.622e-05/0.4447, allocations: 39.98 kB / 355 MB, free: 5.555 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002301/0.447, allocations: 0.9707 MB / 355.9 MB, free: 4.578 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0108/0.4578, allocations: 6.57 MB / 362.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009092/0.4588, allocations: 404.1 kB / 362.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004667/0.4593, allocations: 218.1 kB / 363.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.506e-05/0.4594, allocations: 4.438 kB / 363.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000688/0.4601, allocations: 280.6 kB / 363.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.955e-06/0.4601, allocations: 4 kB / 363.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003869/0.464, allocations: 1.754 MB / 365.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.4641, allocations: 162.8 kB / 365.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001841/0.4659, allocations: 1.277 MB / 366.6 MB, free: 9.391 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.314e-05/0.466, allocations: 37.7 kB / 366.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007776/0.4668, allocations: 0.8712 MB / 367.5 MB, free: 8.465 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002022/0.467, allocations: 209.2 kB / 367.7 MB, free: 8.258 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003165/0.4673, allocations: 214.7 kB / 367.9 MB, free: 8.039 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002063/0.4675, allocations: 353.9 kB / 368.3 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005021/0.468, allocations: 230.5 kB / 368.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009647/0.469, allocations: 0.8112 MB / 369.3 MB, free: 6.375 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001492/0.4705, allocations: 1.114 MB / 370.4 MB, free: 4.992 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/0.4705, allocations: 4 kB / 370.4 MB, free: 4.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002495/0.473, allocations: 1.173 MB / 371.6 MB, free: 3.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.017e-05/0.4731, allocations: 41.69 kB / 371.6 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.072e-05/0.4732, allocations: 20 kB / 371.6 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000283/0.4734, allocations: 78.27 kB / 371.7 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007693/0.4742, allocations: 259.6 kB / 372 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002203/0.4764, allocations: 2.579 MB / 374.6 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.4776, allocations: 67.94 kB / 374.6 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.779e-05/0.4777, allocations: 64 kB / 374.7 MB, free: 428 kB / 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 (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.0007394/0.4785, allocations: 361.3 kB / 375 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002016/0.4787, allocations: 134.6 kB / 375.2 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00112/0.4798, allocations: 0.5411 MB / 375.7 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.4798, allocations: 15.92 kB / 375.7 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.4799, allocations: 0 / 375.7 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.4799, allocations: 0 / 375.7 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00305/0.4829, allocations: 1.881 MB / 377.6 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.256e-06/0.4829, allocations: 8.062 kB / 377.6 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004224/0.4834, allocations: 99.88 kB / 377.7 MB, free: 13.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001916/0.4836, allocations: 45.7 kB / 377.8 MB, free: 13.19 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.607e-05/0.4836, allocations: 19.98 kB / 377.8 MB, free: 13.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002086/0.4857, allocations: 2.548 MB / 380.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.4857, allocations: 11.88 kB / 380.3 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/0.4875, allocations: 0.9185 MB / 381.3 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005217/0.4881, allocations: 255.4 kB / 381.5 MB, free: 9.086 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001505/0.4882, allocations: 19.98 kB / 381.5 MB, free: 9.066 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000536/0.4888, allocations: 35.97 kB / 381.6 MB, free: 9.031 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.4889, allocations: 55.81 kB / 381.6 MB, free: 8.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-05/0.4889, allocations: 16 kB / 381.6 MB, free: 8.961 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00141/0.4904, allocations: 0.85 MB / 382.5 MB, free: 8.109 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4904, allocations: 0 / 382.5 MB, free: 8.109 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001468/0.4918, allocations: 308 kB / 382.8 MB, free: 7.809 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.0003063/0.4922, allocations: 135 kB / 382.9 MB, free: 7.668 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001718/0.4939, allocations: 0.9217 MB / 383.8 MB, free: 6.711 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.4939, allocations: 0 / 383.8 MB, free: 6.711 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007787/0.4947, allocations: 473.1 kB / 384.3 MB, free: 6.223 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.4962, allocations: 309.9 kB / 384.6 MB, free: 5.918 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004839/0.5011, allocations: 3.147 MB / 387.7 MB, free: 2.691 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008782/0.502, allocations: 1.178 MB / 388.9 MB, free: 1.477 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007192/0.5027, allocations: 175.3 kB / 389.1 MB, free: 1.301 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001784/0.5029, allocations: 87.42 kB / 389.2 MB, free: 1.219 MB / 318.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5029, allocations: 0 / 389.2 MB, free: 1.219 MB / 318.1 MB Notification: Performance of Templates: time 0.03523/0.5382, allocations: 14.24 MB / 403.4 MB, free: 2.957 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)