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.00164/0.00164, allocations: 179.6 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.192/1.192, allocations: 194.5 MB / 211.6 MB, free: 3.043 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001572/0.001572, allocations: 121.1 kB / 256.9 MB, free: 4.359 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002928/0.0002928, allocations: 8 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07903/0.07934, allocations: 44.5 MB / 355.1 MB, free: 2.336 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2261/0.3055, allocations: 90.27 MB / 445.3 MB, free: 15.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003033/0.3058, allocations: 88.22 kB / 445.4 MB, free: 15.48 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1107/0.4165, allocations: 44.51 MB / 489.9 MB, free: 5.145 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4166, allocations: 0 / 489.9 MB, free: 5.145 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001144/0.4167, allocations: 43.94 kB / 490 MB, free: 5.102 MB / 362.7 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.003644/0.4203, allocations: 1.828 MB / 491.8 MB, free: 3.219 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.4204, allocations: 8.031 kB / 491.8 MB, free: 3.211 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001039/0.4214, allocations: 285.5 kB / 492.1 MB, free: 2.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002484/0.4239, allocations: 1.2 MB / 493.3 MB, free: 1.672 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.312e-05/0.424, allocations: 119.1 kB / 493.4 MB, free: 1.555 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002482/0.4243, allocations: 155.9 kB / 493.6 MB, free: 1.402 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002565/0.4269, allocations: 1.492 MB / 495.1 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.394e-05/0.4269, allocations: 12.19 kB / 495.1 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001288/0.4271, allocations: 71.95 kB / 495.1 MB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.998e-05/0.4271, allocations: 36 kB / 495.2 MB, free: 15.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002111/0.4293, allocations: 1.073 MB / 496.2 MB, free: 14.65 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008108/0.4374, allocations: 6.408 MB / 0.4909 GB, free: 7.934 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001484/0.4389, allocations: 0.6387 MB / 0.4915 GB, free: 7.285 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.041e-05/0.4389, allocations: 12.56 kB / 0.4915 GB, free: 7.273 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.838e-05/0.439, allocations: 39.12 kB / 0.4915 GB, free: 7.227 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 2.675e-06/0.439, allocations: 0 / 0.4915 GB, free: 7.227 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.00477/0.4438, allocations: 2.486 MB / 0.494 GB, free: 4.641 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.4438, allocations: 115.4 kB / 0.4941 GB, free: 4.504 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001471/0.4453, allocations: 1.1 MB / 0.4952 GB, free: 3.395 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.7e-05/0.4454, allocations: 41.64 kB / 0.4952 GB, free: 3.348 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005618/0.4459, allocations: 0.8609 MB / 0.496 GB, free: 2.477 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.4461, allocations: 264.3 kB / 0.4963 GB, free: 2.215 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.223e-05/0.4462, allocations: 20 kB / 0.4963 GB, free: 2.195 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.4463, allocations: 353.9 kB / 0.4966 GB, free: 1.844 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00058/0.4469, allocations: 294.5 kB / 0.4969 GB, free: 1.555 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008811/0.4478, allocations: 0.7374 MB / 0.4976 GB, free: 0.6094 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007805/0.4486, allocations: 426.9 kB / 0.4981 GB, free: 196 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.979e-06/0.4486, allocations: 4 kB / 0.4981 GB, free: 192 kB / 378.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002385/0.451, allocations: 1.311 MB / 0.4993 GB, free: 14.86 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/0.451, allocations: 16.06 kB / 0.4994 GB, free: 14.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.201e-05/0.4511, allocations: 19.98 kB / 0.4994 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005326/0.4516, allocations: 142.5 kB / 0.4995 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008429/0.4525, allocations: 259.5 kB / 0.4998 GB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003638/0.4561, allocations: 4.336 MB / 0.504 GB, free: 9.676 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.4571, allocations: 67.88 kB / 0.5041 GB, free: 9.609 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-05/0.4572, allocations: 52 kB / 0.5041 GB, free: 9.559 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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.0007006/0.4579, allocations: 357.4 kB / 0.5044 GB, free: 9.199 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002293/0.4582, allocations: 142.3 kB / 0.5046 GB, free: 9.059 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001787/0.46, allocations: 0.8764 MB / 0.5054 GB, free: 8.164 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.46, allocations: 8 kB / 0.5054 GB, free: 8.156 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.46, allocations: 4 kB / 0.5054 GB, free: 8.152 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.46, allocations: 3.984 kB / 0.5054 GB, free: 8.148 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004096/0.4641, allocations: 2.349 MB / 0.5077 GB, free: 5.684 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/0.4641, allocations: 7.953 kB / 0.5078 GB, free: 5.676 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005752/0.4647, allocations: 131.8 kB / 0.5079 GB, free: 5.547 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004631/0.4652, allocations: 143.1 kB / 0.508 GB, free: 5.398 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.471e-05/0.4653, allocations: 20 kB / 0.508 GB, free: 5.379 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004201/0.4695, allocations: 4.493 MB / 0.5124 GB, free: 500 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/0.4695, allocations: 4 kB / 0.5124 GB, free: 496 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1431/0.6126, allocations: 1.551 MB / 0.5139 GB, free: 99.46 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005849/0.6132, allocations: 282.9 kB / 0.5142 GB, free: 99.37 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001436/0.6133, allocations: 18.91 kB / 0.5142 GB, free: 99.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006084/0.6139, allocations: 43.19 kB / 0.5143 GB, free: 99.37 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.6141, allocations: 64.59 kB / 0.5143 GB, free: 99.37 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.851e-05/0.6141, allocations: 22.89 kB / 0.5143 GB, free: 99.37 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001021/0.6152, allocations: 0.8324 MB / 0.5152 GB, free: 99.26 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6152, allocations: 1.562 kB / 0.5152 GB, free: 99.26 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00118/0.6164, allocations: 375.3 kB / 0.5155 GB, free: 99.26 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 () * Number of clocked 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.0004283/0.6168, allocations: 373.3 kB / 0.5159 GB, free: 99.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001602/0.6184, allocations: 1.149 MB / 0.517 GB, free: 98.82 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.6184, allocations: 6.031 kB / 0.517 GB, free: 98.82 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008434/0.6193, allocations: 0.7132 MB / 0.5177 GB, free: 98.48 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.6205, allocations: 337.4 kB / 0.518 GB, free: 98.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00431/0.6248, allocations: 3.583 MB / 0.5215 GB, free: 96.83 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007991/0.6256, allocations: 1.25 MB / 0.5227 GB, free: 96.1 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007472/0.6264, allocations: 178.8 kB / 0.5229 GB, free: 96.06 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000242/0.6266, allocations: 94.47 kB / 0.523 GB, free: 96.06 MB / 394.7 MB Notification: Performance of SimCode: time 4.41e-07/0.6266, allocations: 0 / 0.523 GB, free: 96.06 MB / 394.7 MB Notification: Performance of Templates: time 0.03285/0.6595, allocations: 19.09 MB / 0.5416 GB, free: 94.77 MB / 394.7 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)