Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00138/0.00138, allocations: 187.5 kB / 8.352 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.309/1.309, allocations: 194.3 MB / 203.1 MB, free: 9.312 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001738/0.001738, allocations: 111.9 kB / 248.1 MB, free: 6.332 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.515e-05/1.508e-05, allocations: 4 kB / 298.1 MB, free: 8.238 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07321/0.07324, allocations: 44.49 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2607/0.334, allocations: 89.53 MB / 432.1 MB, free: 6.504 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001628/0.3342, allocations: 82.77 kB / 432.2 MB, free: 6.461 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1094/0.4435, allocations: 43.94 MB / 476.1 MB, free: 1.805 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4436, allocations: 4 kB / 476.1 MB, free: 1.801 MB / 347.1 MB Notification: Performance of Transformations before backend: time 8.789e-05/0.4437, allocations: 40.38 kB / 476.2 MB, free: 1.762 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002674/0.4463, allocations: 1.593 MB / 477.8 MB, free: 120 kB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.4464, allocations: 8.031 kB / 477.8 MB, free: 112 kB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008687/0.4473, allocations: 285.5 kB / 478.1 MB, free: 15.83 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002156/0.4494, allocations: 1.2 MB / 479.3 MB, free: 14.57 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.891e-05/0.4495, allocations: 48 kB / 479.3 MB, free: 14.52 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001869/0.4497, allocations: 99.81 kB / 479.4 MB, free: 14.43 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001652/0.4514, allocations: 0.877 MB / 480.3 MB, free: 13.55 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002057/0.4534, allocations: 1.214 MB / 481.5 MB, free: 12.27 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.524e-05/0.4535, allocations: 11.94 kB / 481.5 MB, free: 12.26 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.108e-05/0.4536, allocations: 0 / 481.5 MB, free: 12.26 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.936e-05/0.4536, allocations: 40 kB / 481.5 MB, free: 12.22 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007801/0.4614, allocations: 6.114 MB / 487.7 MB, free: 5.816 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.4626, allocations: 0.5399 MB / 488.2 MB, free: 5.266 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006728/0.4633, allocations: 402.9 kB / 488.6 MB, free: 4.867 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.269e-05/0.4634, allocations: 16.69 kB / 488.6 MB, free: 4.852 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.4634, allocations: 39.12 kB / 488.6 MB, free: 4.801 MB / 363.1 MB Notification: Performance of pre-optimization done (n=66): time 2.274e-06/0.4634, allocations: 4 kB / 488.6 MB, free: 4.797 MB / 363.1 MB Notification: Performance of matching and sorting (n=72): time 0.002981/0.4664, allocations: 1.658 MB / 490.3 MB, free: 3.082 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.992e-05/0.4665, allocations: 111.6 kB / 490.4 MB, free: 2.949 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001173/0.4677, allocations: 0.8936 MB / 491.3 MB, free: 2.047 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 4.793e-05/0.4677, allocations: 25.7 kB / 491.3 MB, free: 2.016 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005674/0.4683, allocations: 0.8675 MB / 492.2 MB, free: 1.137 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001832/0.4685, allocations: 244.4 kB / 492.4 MB, free: 0.8945 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.621e-05/0.4685, allocations: 4 kB / 492.4 MB, free: 0.8906 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.4687, allocations: 357.8 kB / 492.8 MB, free: 0.5352 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003638/0.469, allocations: 226.6 kB / 493 MB, free: 320 kB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006707/0.4697, allocations: 0.6655 MB / 493.7 MB, free: 15.43 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005275/0.4702, allocations: 348.3 kB / 494 MB, free: 15.09 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.4703, allocations: 4 kB / 494 MB, free: 15.09 MB / 379.1 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001823/0.4721, allocations: 1.068 MB / 495.1 MB, free: 14 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.4721, allocations: 12 kB / 495.1 MB, free: 13.99 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.4722, allocations: 16 kB / 495.1 MB, free: 13.97 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003741/0.4725, allocations: 118.8 kB / 495.2 MB, free: 13.85 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008463/0.4734, allocations: 263.6 kB / 495.5 MB, free: 13.59 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003111/0.4765, allocations: 4.069 MB / 499.6 MB, free: 9.172 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000864/0.4774, allocations: 43.94 kB / 499.6 MB, free: 9.129 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.291e-05/0.4775, allocations: 56 kB / 499.7 MB, free: 9.074 MB / 379.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcpm2.core.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002246/0.4777, allocations: 153.3 kB / 499.8 MB, free: 8.918 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.4779, allocations: 122.5 kB / 499.9 MB, free: 8.797 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001388/0.4793, allocations: 0.7107 MB / 0.4889 GB, free: 8.066 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.353e-06/0.4793, allocations: 7.953 kB / 0.4889 GB, free: 8.059 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.4793, allocations: 4.125 kB / 0.4889 GB, free: 8.055 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.4793, allocations: 4.125 kB / 0.4889 GB, free: 8.051 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003186/0.4825, allocations: 2.017 MB / 0.4909 GB, free: 5.93 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.4825, allocations: 4 kB / 0.4909 GB, free: 5.926 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005701/0.4831, allocations: 135.8 kB / 0.491 GB, free: 5.793 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003352/0.4834, allocations: 110.9 kB / 0.4911 GB, free: 5.676 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.624e-05/0.4835, allocations: 8 kB / 0.4911 GB, free: 5.668 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003205/0.4867, allocations: 4.17 MB / 0.4952 GB, free: 1.152 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.4867, allocations: 8.156 kB / 0.4952 GB, free: 1.145 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001801/0.4885, allocations: 1.347 MB / 0.4965 GB, free: 15.66 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004337/0.489, allocations: 267.5 kB / 0.4968 GB, free: 15.38 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.4891, allocations: 4 kB / 0.4968 GB, free: 15.38 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000581/0.4897, allocations: 35.97 kB / 0.4968 GB, free: 15.34 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.4898, allocations: 60.38 kB / 0.4969 GB, free: 15.28 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.134e-05/0.4899, allocations: 24 kB / 0.4969 GB, free: 15.26 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0009804/0.4909, allocations: 0.6673 MB / 0.4976 GB, free: 14.59 MB / 395.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4909, allocations: 4 kB / 0.4976 GB, free: 14.58 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001174/0.4921, allocations: 304 kB / 0.4978 GB, free: 14.29 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004421/0.4925, allocations: 341.9 kB / 0.4982 GB, free: 13.95 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001425/0.4939, allocations: 0.9765 MB / 0.4991 GB, free: 12.95 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.494, allocations: 0 / 0.4991 GB, free: 12.95 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007746/0.4947, allocations: 0.6335 MB / 0.4997 GB, free: 12.29 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001367/0.4961, allocations: 302.2 kB / 0.5 GB, free: 11.99 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004161/0.5003, allocations: 2.268 MB / 0.5022 GB, free: 9.641 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007331/0.5011, allocations: 1.245 MB / 0.5035 GB, free: 8.367 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.0007196/0.5018, allocations: 166.8 kB / 0.5036 GB, free: 8.199 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001915/0.502, allocations: 83.42 kB / 0.5037 GB, free: 8.117 MB / 395.1 MB Notification: Performance of SimCode: time 4.51e-07/0.502, allocations: 0 / 0.5037 GB, free: 8.117 MB / 395.1 MB Notification: Performance of Templates: time 0.1893/0.6913, allocations: 14.96 MB / 0.5183 GB, free: 90.1 MB / 395.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)