Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001126/0.001126, allocations: 200.9 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.534/1.534, allocations: 226.5 MB / 245.4 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008559/0.0008559, allocations: 98.38 kB / 297.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3633/0.3633, allocations: 44.82 MB / 394.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002511/0.0002511, allocations: 8 kB / 467.9 MB, free: 12.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.3551, allocations: 62.96 MB / 0.5184 GB, free: 37.31 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1685/0.5237, allocations: 124.6 MB / 0.6401 GB, free: 12.66 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/0.524, allocations: 83.95 kB / 0.6402 GB, free: 12.58 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4372/0.9613, allocations: 62.22 MB / 0.7009 GB, free: 103.7 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.9613, allocations: 0 / 0.7009 GB, free: 103.7 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004309/0.9617, allocations: 84.62 kB / 0.701 GB, free: 103.7 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.0102/0.972, allocations: 3.265 MB / 0.7042 GB, free: 102.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.972, allocations: 8.719 kB / 0.7042 GB, free: 102.2 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002411/0.9745, allocations: 415.3 kB / 0.7046 GB, free: 102 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007201/0.9817, allocations: 2.24 MB / 0.7068 GB, free: 101.4 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003895/0.9821, allocations: 214 kB / 0.707 GB, free: 101.4 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001576/0.9837, allocations: 284.1 kB / 0.7072 GB, free: 101.4 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01268/0.9964, allocations: 3.71 MB / 0.7109 GB, free: 101 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002503/0.9967, allocations: 7.75 kB / 0.7109 GB, free: 101 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001096/0.9978, allocations: 126.2 kB / 0.711 GB, free: 101 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002426/0.9981, allocations: 138.8 kB / 0.7111 GB, free: 101 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008755/1.007, allocations: 3.009 MB / 0.7141 GB, free: 99.84 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02861/1.036, allocations: 11.64 MB / 0.7254 GB, free: 94.03 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003869/1.039, allocations: 2.263 MB / 0.7276 GB, free: 92.78 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001619/1.041, allocations: 1.1 MB / 0.7287 GB, free: 92.36 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003628/1.042, allocations: 219.4 kB / 0.7289 GB, free: 92.17 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/1.042, allocations: 51.06 kB / 0.729 GB, free: 92.12 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 5.71e-06/1.042, allocations: 4 kB / 0.729 GB, free: 92.11 MB / 490.7 MB Notification: Performance of matching and sorting (n=156): time 0.01872/1.06, allocations: 8.305 MB / 0.7371 GB, free: 89.04 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/1.06, allocations: 70.38 kB / 0.7372 GB, free: 88.97 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004294/1.065, allocations: 1.934 MB / 0.739 GB, free: 88.21 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002818/1.065, allocations: 49.3 kB / 0.7391 GB, free: 88.16 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009662/1.066, allocations: 1.366 MB / 0.7404 GB, free: 87.12 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005892/1.067, allocations: 0.5306 MB / 0.7409 GB, free: 86.7 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001672/1.067, allocations: 35.47 kB / 0.741 GB, free: 86.68 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000157/1.067, allocations: 375.1 kB / 0.7413 GB, free: 86.34 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001587/1.069, allocations: 0.9015 MB / 0.7422 GB, free: 86.02 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001636/1.07, allocations: 1.347 MB / 0.7435 GB, free: 85.15 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01069/1.081, allocations: 4.571 MB / 0.748 GB, free: 83.18 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.182e-05/1.081, allocations: 6.094 kB / 0.748 GB, free: 83.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005764/1.087, allocations: 2.944 MB / 0.7509 GB, free: 82 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.707e-05/1.087, allocations: 13.94 kB / 0.7509 GB, free: 82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.987e-05/1.087, allocations: 16.03 kB / 0.7509 GB, free: 82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001081/1.088, allocations: 451.7 kB / 0.7513 GB, free: 81.86 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001673/1.09, allocations: 465.9 kB / 0.7518 GB, free: 81.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006031/1.096, allocations: 7.052 MB / 0.7587 GB, free: 76.55 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002325/1.098, allocations: 130.1 kB / 0.7588 GB, free: 76.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004305/1.098, allocations: 78.55 kB / 0.7589 GB, free: 76.51 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[1]:VARIABLE(unit = "A" fixed = true 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: 59 * 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 (204): * Single equations (assignments): 201 * 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.002768/1.101, allocations: 0.9023 MB / 0.7597 GB, free: 76.02 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007853/1.102, allocations: 204.8 kB / 0.7599 GB, free: 75.91 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005472/1.108, allocations: 3.019 MB / 0.7629 GB, free: 74.73 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-05/1.108, allocations: 16.62 kB / 0.7629 GB, free: 74.73 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.888e-05/1.108, allocations: 11.09 kB / 0.7629 GB, free: 74.73 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.695e-05/1.108, allocations: 6.516 kB / 0.7629 GB, free: 74.73 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01187/1.12, allocations: 6.198 MB / 0.769 GB, free: 70.81 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/1.12, allocations: 4 kB / 0.769 GB, free: 70.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/1.121, allocations: 238.1 kB / 0.7692 GB, free: 70.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00208/1.123, allocations: 0.8359 MB / 0.77 GB, free: 69.96 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001357/1.123, allocations: 35.28 kB / 0.7701 GB, free: 69.93 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01065/1.134, allocations: 10.24 MB / 0.7801 GB, free: 60.37 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/1.134, allocations: 4 kB / 0.7801 GB, free: 60.36 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006885/1.14, allocations: 4.271 MB / 0.7842 GB, free: 56.59 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001531/1.142, allocations: 0.49 MB / 0.7847 GB, free: 56.12 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007771/1.143, allocations: 32 kB / 0.7847 GB, free: 56.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001704/1.145, allocations: 114.7 kB / 0.7848 GB, free: 55.98 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003522/1.145, allocations: 117.1 kB / 0.785 GB, free: 55.87 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/1.145, allocations: 51.97 kB / 0.785 GB, free: 55.82 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00298/1.148, allocations: 1.325 MB / 0.7863 GB, free: 54.47 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.4e-07/1.148, allocations: 0 / 0.7863 GB, free: 54.47 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003595/1.152, allocations: 0.6211 MB / 0.7869 GB, free: 53.85 MB / 490.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,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x) * 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 (113): * Single equations (assignments): 110 * 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.0008088/1.152, allocations: 431.6 kB / 0.7873 GB, free: 53.48 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004652/1.157, allocations: 2.663 MB / 0.7899 GB, free: 50.78 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/1.157, allocations: 4 kB / 0.7899 GB, free: 50.78 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002476/1.16, allocations: 1.694 MB / 0.7916 GB, free: 49.05 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004227/1.164, allocations: 0.4928 MB / 0.7921 GB, free: 48.57 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01393/1.178, allocations: 6.921 MB / 0.7988 GB, free: 41.62 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003057/1.181, allocations: 2.216 MB / 0.801 GB, free: 39.38 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00195/1.183, allocations: 460.2 kB / 0.8014 GB, free: 38.94 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004657/1.183, allocations: 155.4 kB / 0.8016 GB, free: 38.79 MB / 490.7 MB Notification: Performance of SimCode: time 8.12e-07/1.183, allocations: 3.938 kB / 0.8016 GB, free: 38.78 MB / 490.7 MB Notification: Performance of Templates: time 0.05882/1.242, allocations: 34.9 MB / 0.8357 GB, free: 4.207 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)