Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) 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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001938/0.001938, allocations: 181.8 kB / 12.74 MB, free: 2.582 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.839/1.839, allocations: 194.3 MB / 207.5 MB, free: 3.387 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.001617/0.001618, allocations: 103.6 kB / 252.6 MB, free: 4.785 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2088/0.2088, allocations: 39.94 MB / 337.5 MB, free: 472 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.367e-05/3.369e-05, allocations: 8 kB / 400.3 MB, free: 69.86 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1271, allocations: 54.87 MB / 455.1 MB, free: 14.96 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4193/0.5465, allocations: 117.5 MB / 0.5592 GB, free: 6.609 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.5468, allocations: 74.59 kB / 0.5593 GB, free: 6.574 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1654/0.7122, allocations: 61.83 MB / 0.6196 GB, free: 328 kB / 426.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.7123, allocations: 4 kB / 0.6196 GB, free: 324 kB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002718/0.7125, allocations: 79.88 kB / 0.6197 GB, free: 244 kB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.008957/0.7215, allocations: 2.892 MB / 0.6225 GB, free: 13.28 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.7216, allocations: 11.97 kB / 0.6225 GB, free: 13.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001927/0.7235, allocations: 403.9 kB / 0.6229 GB, free: 12.87 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005452/0.729, allocations: 2.149 MB / 0.625 GB, free: 10.67 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002098/0.7292, allocations: 205.7 kB / 0.6252 GB, free: 10.46 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009257/0.7301, allocations: 287.9 kB / 0.6255 GB, free: 10.18 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008172/0.7383, allocations: 3.612 MB / 0.629 GB, free: 6.426 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-05/0.7385, allocations: 11.92 kB / 0.629 GB, free: 6.414 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003111/0.7388, allocations: 116 kB / 0.6292 GB, free: 6.301 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001553/0.739, allocations: 133.5 kB / 0.6293 GB, free: 6.168 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005593/0.7446, allocations: 2.915 MB / 0.6321 GB, free: 3.242 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02186/0.7665, allocations: 11.59 MB / 0.6435 GB, free: 7.344 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003692/0.7702, allocations: 2.194 MB / 0.6456 GB, free: 5.035 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001533/0.7718, allocations: 1.058 MB / 0.6466 GB, free: 3.98 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003823/0.7722, allocations: 227.5 kB / 0.6468 GB, free: 3.719 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.242e-05/0.7722, allocations: 55.86 kB / 0.6469 GB, free: 3.656 MB / 458.7 MB Notification: Performance of pre-optimization done (n=141): time 3.777e-06/0.7722, allocations: 0 / 0.6469 GB, free: 3.656 MB / 458.7 MB Notification: Performance of matching and sorting (n=155): time 0.01239/0.7846, allocations: 6.041 MB / 0.6528 GB, free: 13.55 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.7847, allocations: 68.72 kB / 0.6529 GB, free: 13.48 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003012/0.7877, allocations: 1.681 MB / 0.6545 GB, free: 11.75 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002217/0.788, allocations: 53.7 kB / 0.6546 GB, free: 11.69 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.7891, allocations: 1.355 MB / 0.6559 GB, free: 10.32 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005846/0.7897, allocations: 0.5198 MB / 0.6564 GB, free: 9.793 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.7898, allocations: 36 kB / 0.6564 GB, free: 9.758 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.79, allocations: 377.9 kB / 0.6568 GB, free: 9.383 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/0.7913, allocations: 0.863 MB / 0.6576 GB, free: 8.52 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001616/0.7929, allocations: 1.319 MB / 0.6589 GB, free: 7.016 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001704/0.7947, allocations: 1.084 MB / 0.66 GB, free: 5.934 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.126e-05/0.7947, allocations: 4 kB / 0.66 GB, free: 5.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005174/0.7999, allocations: 2.86 MB / 0.6628 GB, free: 3.051 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.557e-05/0.7999, allocations: 16.03 kB / 0.6628 GB, free: 3.035 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.262e-05/0.8, allocations: 19.92 kB / 0.6628 GB, free: 3.016 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001135/0.8011, allocations: 446.2 kB / 0.6632 GB, free: 2.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001762/0.8029, allocations: 455.2 kB / 0.6637 GB, free: 2.125 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2801/1.083, allocations: 7.026 MB / 0.6705 GB, free: 111.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00222/1.085, allocations: 126.5 kB / 0.6706 GB, free: 111.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002106/1.085, allocations: 81.73 kB / 0.6707 GB, free: 111.4 MB / 474.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (203): * Single equations (assignments): 200 * 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: 3 {(2,100.0%) 9,(1,100.0%) 2,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003859/1.086, allocations: 214.3 kB / 0.6709 GB, free: 111.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004231/1.086, allocations: 210 kB / 0.6711 GB, free: 111.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005863/1.092, allocations: 2.944 MB / 0.674 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/1.092, allocations: 19.22 kB / 0.674 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/1.092, allocations: 6.688 kB / 0.674 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.328e-05/1.092, allocations: 8.578 kB / 0.674 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01188/1.104, allocations: 6.108 MB / 0.68 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/1.104, allocations: 3.5 kB / 0.68 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/1.105, allocations: 235.8 kB / 0.6802 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002219/1.107, allocations: 0.832 MB / 0.681 GB, free: 110.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001356/1.108, allocations: 39.83 kB / 0.6811 GB, free: 110.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0118/1.119, allocations: 10.18 MB / 0.691 GB, free: 106.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/1.12, allocations: 13.67 kB / 0.691 GB, free: 106.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00628/1.126, allocations: 4.363 MB / 0.6953 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/1.127, allocations: 496.3 kB / 0.6958 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002511/1.127, allocations: 33.91 kB / 0.6958 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/1.128, allocations: 98.44 kB / 0.6959 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002809/1.129, allocations: 123.8 kB / 0.696 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/1.129, allocations: 50.44 kB / 0.6961 GB, free: 105.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001857/1.13, allocations: 1.291 MB / 0.6973 GB, free: 105.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.61e-07/1.13, allocations: 0 / 0.6973 GB, free: 105.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001979/1.132, allocations: 0.6244 MB / 0.6979 GB, free: 105.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 109 * 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: 3 {(2,100.0%) 9,(1,100.0%) 2,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005863/1.133, allocations: 405.4 kB / 0.6983 GB, free: 105.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003264/1.136, allocations: 2.597 MB / 0.7008 GB, free: 104.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/1.136, allocations: 0 / 0.7008 GB, free: 104.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001908/1.138, allocations: 1.646 MB / 0.7025 GB, free: 103.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002139/1.14, allocations: 497.5 kB / 0.7029 GB, free: 103.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006957/1.147, allocations: 4.692 MB / 0.7075 GB, free: 101.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001571/1.149, allocations: 2.263 MB / 0.7097 GB, free: 100.5 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001591/1.151, allocations: 460.9 kB / 0.7102 GB, free: 100.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004386/1.151, allocations: 155.1 kB / 0.7103 GB, free: 100.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.062e-06/1.151, allocations: 0 / 0.7103 GB, free: 100.5 MB / 474.7 MB Notification: Performance of Templates: time 0.05758/1.209, allocations: 34.71 MB / 0.7442 GB, free: 92.44 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)