Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009942/0.009942, allocations: 164.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.296/1.296, allocations: 170.8 MB / 186.6 MB, free: 1.117 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001542/0.001541, allocations: 111.3 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004229/0.000423, allocations: 8 kB / 274.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.2142, allocations: 38.76 MB / 312.9 MB, free: 38.81 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.107/0.3212, allocations: 85.15 MB / 398 MB, free: 5.355 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.3215, allocations: 87.95 kB / 398.1 MB, free: 5.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2893/0.6108, allocations: 42.84 MB / 441 MB, free: 77.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.6108, allocations: 0 / 441 MB, free: 77.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.667e-05/0.6109, allocations: 36.25 kB / 441 MB, free: 77.26 MB / 314.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.003052/0.614, allocations: 1.825 MB / 442.8 MB, free: 76.15 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.6141, allocations: 10.56 kB / 442.8 MB, free: 76.15 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008701/0.6149, allocations: 288.3 kB / 443.1 MB, free: 76.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002068/0.617, allocations: 1.209 MB / 444.3 MB, free: 75.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.046e-05/0.6171, allocations: 121 kB / 444.4 MB, free: 75.05 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001889/0.6173, allocations: 163.1 kB / 444.6 MB, free: 75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002259/0.6196, allocations: 1.492 MB / 446.1 MB, free: 74.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.787e-05/0.6196, allocations: 11.34 kB / 446.1 MB, free: 74.04 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001105/0.6197, allocations: 69.66 kB / 446.2 MB, free: 73.99 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.799e-05/0.6198, allocations: 38.03 kB / 446.2 MB, free: 73.99 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001766/0.6215, allocations: 1.072 MB / 447.3 MB, free: 73.46 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006904/0.6285, allocations: 6.433 MB / 453.7 MB, free: 68.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.6298, allocations: 0.6391 MB / 454.4 MB, free: 67.7 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.613e-05/0.6299, allocations: 12.55 kB / 454.4 MB, free: 67.69 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.6299, allocations: 43.12 kB / 454.4 MB, free: 67.64 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 2.955e-06/0.6299, allocations: 0 / 454.4 MB, free: 67.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.004428/0.6343, allocations: 2.516 MB / 456.9 MB, free: 65.03 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.6344, allocations: 111.5 kB / 457 MB, free: 64.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001218/0.6356, allocations: 1.096 MB / 458.1 MB, free: 63.79 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.11e-05/0.6357, allocations: 41.7 kB / 458.2 MB, free: 63.74 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003899/0.6361, allocations: 0.8577 MB / 459 MB, free: 62.88 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.6362, allocations: 266.3 kB / 459.3 MB, free: 62.62 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.828e-05/0.6363, allocations: 20 kB / 459.3 MB, free: 62.6 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.34e-05/0.6363, allocations: 353.9 kB / 459.6 MB, free: 62.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004878/0.6368, allocations: 298.5 kB / 459.9 MB, free: 61.96 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006397/0.6375, allocations: 0.749 MB / 460.7 MB, free: 61 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006272/0.6381, allocations: 423 kB / 461.1 MB, free: 60.58 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/0.6381, allocations: 4 kB / 461.1 MB, free: 60.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001905/0.64, allocations: 1.322 MB / 462.4 MB, free: 59.24 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.6401, allocations: 12 kB / 462.4 MB, free: 59.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.6401, allocations: 15.95 kB / 462.5 MB, free: 59.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004423/0.6405, allocations: 146.6 kB / 462.6 MB, free: 59.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007595/0.6413, allocations: 263.6 kB / 462.9 MB, free: 58.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002692/0.644, allocations: 4.344 MB / 467.2 MB, free: 54.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.645, allocations: 67.88 kB / 467.3 MB, free: 53.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.852e-05/0.6451, allocations: 56 kB / 467.3 MB, free: 53.94 MB / 314.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.0006507/0.6458, allocations: 358.4 kB / 467.7 MB, free: 53.58 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001472/0.6459, allocations: 138.3 kB / 467.8 MB, free: 53.44 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001538/0.6475, allocations: 0.892 MB / 468.7 MB, free: 52.53 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.6475, allocations: 4 kB / 468.7 MB, free: 52.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.6475, allocations: 4 kB / 468.7 MB, free: 52.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.6475, allocations: 3.984 kB / 468.7 MB, free: 52.52 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003194/0.6507, allocations: 2.368 MB / 471.1 MB, free: 50.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.6507, allocations: 8.109 kB / 471.1 MB, free: 50.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005497/0.6513, allocations: 136.2 kB / 471.2 MB, free: 49.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004167/0.6517, allocations: 138.5 kB / 471.4 MB, free: 49.76 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.303e-05/0.6518, allocations: 19.98 kB / 471.4 MB, free: 49.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003008/0.6548, allocations: 4.495 MB / 475.9 MB, free: 44.85 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.6548, allocations: 8.25 kB / 475.9 MB, free: 44.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002233/0.657, allocations: 1.579 MB / 477.5 MB, free: 43.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005326/0.6576, allocations: 279.4 kB / 477.7 MB, free: 42.79 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001623/0.6578, allocations: 16 kB / 477.7 MB, free: 42.78 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006087/0.6584, allocations: 43.97 kB / 477.8 MB, free: 42.73 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.6585, allocations: 68.38 kB / 477.9 MB, free: 42.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.504e-05/0.6585, allocations: 20 kB / 477.9 MB, free: 42.65 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001022/0.6596, allocations: 0.8273 MB / 478.7 MB, free: 41.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6596, allocations: 0 / 478.7 MB, free: 41.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001293/0.6609, allocations: 380 kB / 479.1 MB, free: 41.45 MB / 314.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.00057/0.6614, allocations: 379.5 kB / 479.4 MB, free: 41.11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001819/0.6633, allocations: 1.156 MB / 480.6 MB, free: 39.91 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.6633, allocations: 4.125 kB / 480.6 MB, free: 39.91 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007932/0.6641, allocations: 0.7068 MB / 481.3 MB, free: 39.17 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.6655, allocations: 342.4 kB / 481.6 MB, free: 38.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004972/0.6704, allocations: 3.578 MB / 485.2 MB, free: 35.18 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005627/0.671, allocations: 1.245 MB / 486.5 MB, free: 33.91 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007521/0.6718, allocations: 179.7 kB / 486.6 MB, free: 33.73 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001964/0.672, allocations: 91.42 kB / 486.7 MB, free: 33.64 MB / 314.7 MB Notification: Performance of SimCode: time 1.743e-06/0.672, allocations: 0 / 486.7 MB, free: 33.64 MB / 314.7 MB Notification: Performance of Templates: time 0.02938/0.7014, allocations: 19.24 MB / 0.4941 GB, free: 14.43 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)