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.001023/0.001023, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007627/0.007628, allocations: 169.5 kB / 16.27 MB, free: 6.336 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.719/1.719, allocations: 205.4 MB / 222.4 MB, free: 5.555 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.0004599/0.00046, allocations: 12 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3762/0.3767, allocations: 47.58 MB / 327 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01325/0.39, allocations: 11.04 MB / 338.1 MB, free: 8.293 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008998/0.3991, allocations: 3.161 MB / 341.2 MB, free: 5.121 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002861/0.402, allocations: 35.94 kB / 341.3 MB, free: 5.086 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003063/0.4051, allocations: 0.5516 MB / 341.8 MB, free: 4.531 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003897/0.409, allocations: 0.5857 MB / 342.4 MB, free: 3.941 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001725/0.4108, allocations: 347.6 kB / 342.7 MB, free: 3.602 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004576/0.4154, allocations: 2.117 MB / 344.9 MB, free: 1.473 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00187/0.4173, allocations: 0.8501 MB / 345.7 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001701/0.419, allocations: 0.6843 MB / 346.4 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001368/0.4204, allocations: 0.7889 MB / 347.2 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002166/0.4206, allocations: 104 kB / 347.3 MB, free: 15 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004152/0.421, allocations: 136 kB / 347.4 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002591/0.4213, allocations: 302.5 kB / 347.7 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001003/0.4223, allocations: 0.9032 MB / 348.6 MB, free: 13.66 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002401/0.4247, allocations: 2.506 MB / 351.1 MB, free: 11.14 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.4247, allocations: 0 / 351.1 MB, free: 11.14 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.629e-06/0.4247, allocations: 0 / 351.1 MB, free: 11.14 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.206e-05/0.4248, allocations: 3.938 kB / 351.1 MB, free: 11.14 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.003429/0.4282, allocations: 1.752 MB / 352.9 MB, free: 9.324 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.4283, allocations: 8.031 kB / 352.9 MB, free: 9.316 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007747/0.4291, allocations: 262.5 kB / 353.1 MB, free: 9.059 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001647/0.4307, allocations: 1.024 MB / 354.2 MB, free: 7.992 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.933e-05/0.4308, allocations: 115.5 kB / 354.3 MB, free: 7.879 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002286/0.4311, allocations: 163.8 kB / 354.4 MB, free: 7.719 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002739/0.4338, allocations: 1.495 MB / 355.9 MB, free: 6.148 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.119e-05/0.4339, allocations: 4 kB / 355.9 MB, free: 6.145 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/0.434, allocations: 68 kB / 356 MB, free: 6.078 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.712e-05/0.434, allocations: 36 kB / 356 MB, free: 6.043 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002017/0.4361, allocations: 0.9863 MB / 357 MB, free: 5.051 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009494/0.4456, allocations: 6.601 MB / 363.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008578/0.4465, allocations: 404.2 kB / 364 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004452/0.4469, allocations: 234.1 kB / 364.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.529e-05/0.447, allocations: 12.38 kB / 364.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006132/0.4476, allocations: 268.8 kB / 364.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 3.557e-06/0.4476, allocations: 0 / 364.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004261/0.4519, allocations: 1.793 MB / 366.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002016/0.4521, allocations: 158.8 kB / 366.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00202/0.4541, allocations: 1.273 MB / 367.7 MB, free: 9.793 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.491e-05/0.4542, allocations: 41.7 kB / 367.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008542/0.4551, allocations: 0.8751 MB / 368.7 MB, free: 8.859 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002048/0.4553, allocations: 205.2 kB / 368.9 MB, free: 8.656 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001284/0.4554, allocations: 93.66 kB / 369 MB, free: 8.559 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002523/0.4557, allocations: 353.9 kB / 369.3 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004928/0.4562, allocations: 238.5 kB / 369.5 MB, free: 7.973 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009502/0.4571, allocations: 0.8034 MB / 370.3 MB, free: 6.895 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001573/0.4587, allocations: 1.138 MB / 371.5 MB, free: 5.484 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/0.4588, allocations: 4 kB / 371.5 MB, free: 5.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00195/0.4607, allocations: 1.18 MB / 372.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.472e-05/0.4608, allocations: 41.7 kB / 372.7 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/0.4608, allocations: 20 kB / 372.7 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000272/0.4611, allocations: 70.31 kB / 372.8 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008052/0.4619, allocations: 271.5 kB / 373.1 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002334/0.4642, allocations: 2.572 MB / 375.6 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001062/0.4653, allocations: 79.78 kB / 375.7 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.87e-05/0.4654, allocations: 63.98 kB / 375.8 MB, free: 0.8945 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 (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.000777/0.4662, allocations: 369.2 kB / 376.1 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/0.4664, allocations: 130.4 kB / 376.3 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001104/0.4675, allocations: 0.5607 MB / 376.8 MB, free: 15.81 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.4675, allocations: 7.938 kB / 376.8 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.4675, allocations: 0 / 376.8 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.4675, allocations: 3.984 kB / 376.8 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002911/0.4704, allocations: 1.885 MB / 378.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.4705, allocations: 4.031 kB / 378.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000415/0.4709, allocations: 111.8 kB / 378.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001521/0.4711, allocations: 45.7 kB / 378.9 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.256e-05/0.4711, allocations: 12 kB / 378.9 MB, free: 13.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002169/0.4733, allocations: 2.552 MB / 381.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.307e-06/0.4733, allocations: 4 kB / 381.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00152/0.4748, allocations: 0.942 MB / 382.4 MB, free: 9.789 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004549/0.4753, allocations: 255.4 kB / 382.6 MB, free: 9.52 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000134/0.4754, allocations: 23.98 kB / 382.7 MB, free: 9.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005172/0.476, allocations: 31.98 kB / 382.7 MB, free: 9.465 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.4761, allocations: 59.81 kB / 382.7 MB, free: 9.406 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-05/0.4761, allocations: 19.98 kB / 382.8 MB, free: 9.387 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001371/0.4775, allocations: 0.8461 MB / 383.6 MB, free: 8.539 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.082e-06/0.4775, allocations: 0 / 383.6 MB, free: 8.539 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001444/0.479, allocations: 304 kB / 383.9 MB, free: 8.242 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.0003159/0.4793, allocations: 135 kB / 384 MB, free: 8.102 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001764/0.4811, allocations: 0.9295 MB / 385 MB, free: 7.137 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.4811, allocations: 4.312 kB / 385 MB, free: 7.133 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000728/0.4818, allocations: 480.8 kB / 385.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002121/0.484, allocations: 313.8 kB / 385.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005099/0.4891, allocations: 3.247 MB / 389 MB, free: 3 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008677/0.49, allocations: 1.178 MB / 390.2 MB, free: 1.793 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007139/0.4907, allocations: 167.3 kB / 390.3 MB, free: 1.625 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001835/0.4909, allocations: 87.42 kB / 390.4 MB, free: 1.539 MB / 318.1 MB Notification: Performance of SimCode: time 1.432e-06/0.4909, allocations: 4 kB / 390.4 MB, free: 1.535 MB / 318.1 MB Notification: Performance of Templates: time 0.03203/0.5229, allocations: 14.15 MB / 404.6 MB, free: 3.363 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)