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.009341/0.009341, allocations: 104.1 kB / 15.74 MB, free: 6.047 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.001547/0.001548, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.699/1.699, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.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.00124/0.00124, allocations: 51.91 kB / 326.6 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1083, allocations: 46.61 MB / 373.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.2572/0.3655, allocations: 11.69 MB / 384.9 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01135/0.3769, allocations: 3.221 MB / 388.1 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004315/0.3814, allocations: 34.75 kB / 388.1 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004421/0.3859, allocations: 0.6431 MB / 388.8 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006397/0.3923, allocations: 0.6802 MB / 389.4 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002579/0.3949, allocations: 396.7 kB / 389.8 MB, free: 3.699 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006799/0.4018, allocations: 2.252 MB / 392.1 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002683/0.4045, allocations: 0.995 MB / 393.1 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003023/0.4075, allocations: 0.8414 MB / 393.9 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002894/0.4105, allocations: 0.9111 MB / 394.8 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001125/0.4116, allocations: 216.5 kB / 395 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001793/0.4134, allocations: 253.9 kB / 395.3 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00082/0.4143, allocations: 435.7 kB / 395.7 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003929/0.4182, allocations: 1.016 MB / 396.7 MB, free: 60 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009114/0.4273, allocations: 2.683 MB / 399.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.177e-05/0.4274, allocations: 0.75 kB / 399.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4274, allocations: 1.719 kB / 399.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001369/0.4276, allocations: 0 / 399.4 MB, free: 15.04 MB / 334.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.006803/0.4344, allocations: 2.059 MB / 401.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.939e-05/0.4345, allocations: 9.469 kB / 401.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001162/0.4356, allocations: 258 kB / 401.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002494/0.4381, allocations: 1.051 MB / 402.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.4383, allocations: 114.7 kB / 402.9 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002847/0.4386, allocations: 160.4 kB / 403 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003525/0.4421, allocations: 1.49 MB / 404.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.839e-05/0.4422, allocations: 7.906 kB / 404.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001394/0.4423, allocations: 66.78 kB / 404.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-05/0.4424, allocations: 38.69 kB / 404.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002375/0.4448, allocations: 0.9673 MB / 405.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01182/0.4566, allocations: 6.52 MB / 412.1 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.4577, allocations: 403.4 kB / 412.5 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000542/0.4583, allocations: 221.3 kB / 412.7 MB, free: 5.223 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.48e-05/0.4584, allocations: 5.625 kB / 412.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006966/0.4591, allocations: 269.3 kB / 413 MB, free: 5.027 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.515e-06/0.4591, allocations: 0 / 413 MB, free: 5.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.005548/0.4646, allocations: 1.759 MB / 414.8 MB, free: 3.816 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001774/0.4649, allocations: 166.5 kB / 414.9 MB, free: 3.625 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002698/0.4676, allocations: 1.273 MB / 416.2 MB, free: 2.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.803e-05/0.4677, allocations: 36.7 kB / 416.2 MB, free: 2.871 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009193/0.4686, allocations: 0.8772 MB / 417.1 MB, free: 2.086 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002265/0.4688, allocations: 212.6 kB / 417.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003394/0.4692, allocations: 221.2 kB / 417.5 MB, free: 1.766 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.4694, allocations: 351.5 kB / 417.9 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000504/0.4699, allocations: 228.9 kB / 418.1 MB, free: 1.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001117/0.471, allocations: 0.8049 MB / 418.9 MB, free: 424 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001892/0.4729, allocations: 1.114 MB / 420 MB, free: 15.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.942e-05/0.473, allocations: 5.781 kB / 420 MB, free: 15.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00258/0.4756, allocations: 1.168 MB / 421.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.662e-05/0.4757, allocations: 45.64 kB / 421.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.677e-05/0.4757, allocations: 24.09 kB / 421.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003177/0.476, allocations: 65.64 kB / 421.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008308/0.4769, allocations: 263.6 kB / 421.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00266/0.4796, allocations: 2.784 MB / 424.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001869/0.4814, allocations: 71.94 kB / 424.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.4816, allocations: 60 kB / 424.5 MB, free: 10.73 MB / 350.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.001066/0.4826, allocations: 354.8 kB / 424.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002778/0.4829, allocations: 134.3 kB / 425 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00119/0.4841, allocations: 0.5528 MB / 425.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.4841, allocations: 4 kB / 425.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.4841, allocations: 0 / 425.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.614e-05/0.4842, allocations: 3.984 kB / 425.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00347/0.4877, allocations: 1.866 MB / 427.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.4877, allocations: 4 kB / 427.4 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004394/0.4881, allocations: 103.9 kB / 427.5 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001838/0.4883, allocations: 54.11 kB / 427.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.73e-05/0.4884, allocations: 19.98 kB / 427.6 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002375/0.4907, allocations: 2.749 MB / 430.3 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.827e-06/0.4908, allocations: 8 kB / 430.3 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.4926, allocations: 0.9161 MB / 431.3 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008256/0.4934, allocations: 255.4 kB / 431.5 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001427/0.4936, allocations: 19.98 kB / 431.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005652/0.4941, allocations: 31.98 kB / 431.6 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.4943, allocations: 59.59 kB / 431.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.721e-05/0.4944, allocations: 20 kB / 431.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001426/0.4958, allocations: 0.8422 MB / 432.5 MB, free: 2.234 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4958, allocations: 7.938 kB / 432.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001535/0.4974, allocations: 304 kB / 432.8 MB, free: 1.93 MB / 350.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.0003547/0.4977, allocations: 131.1 kB / 432.9 MB, free: 1.793 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001836/0.4996, allocations: 0.9294 MB / 433.8 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.4996, allocations: 0.8125 kB / 433.8 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007262/0.5003, allocations: 473.3 kB / 434.3 MB, free: 344 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001628/0.502, allocations: 332.9 kB / 434.6 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005002/0.507, allocations: 2.519 MB / 437.1 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009663/0.508, allocations: 1.178 MB / 438.3 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006901/0.5087, allocations: 171.3 kB / 438.5 MB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001971/0.5089, allocations: 83.44 kB / 438.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of SimCode: time 1.863e-06/0.5089, allocations: 0 / 438.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of Templates: time 0.03453/0.5434, allocations: 15.55 MB / 454.1 MB, free: 12.38 MB / 382.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)