Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 183 kB / 18.09 MB, free: 3.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 223.3 MB / 242.1 MB, free: 10 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007436/0.0007436, allocations: 90.8 kB / 293.3 MB, free: 10.58 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3596/0.3596, allocations: 44.14 MB / 388.5 MB, free: 38.49 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003758/0.0003759, allocations: 12 kB / 461.1 MB, free: 1.352 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3708/0.3712, allocations: 61.89 MB / 0.5107 GB, free: 37.84 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1617/0.5329, allocations: 123.7 MB / 0.6315 GB, free: 3.359 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/0.5332, allocations: 79.95 kB / 0.6316 GB, free: 3.285 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4268/0.96, allocations: 62.14 MB / 0.6922 GB, free: 99.59 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.027e-06/0.96, allocations: 0 / 0.6922 GB, free: 99.59 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005225/0.9606, allocations: 88.48 kB / 0.6923 GB, free: 99.59 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.009589/0.9702, allocations: 3.251 MB / 0.6955 GB, free: 98.25 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.9702, allocations: 11.09 kB / 0.6955 GB, free: 98.25 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002092/0.9723, allocations: 404.3 kB / 0.6959 GB, free: 98.07 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006465/0.9788, allocations: 2.245 MB / 0.6981 GB, free: 97.49 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002532/0.9791, allocations: 219.5 kB / 0.6983 GB, free: 97.48 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001125/0.9802, allocations: 280.2 kB / 0.6986 GB, free: 97.48 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009233/0.9895, allocations: 3.718 MB / 0.7022 GB, free: 97.04 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001439/0.9897, allocations: 7.031 kB / 0.7022 GB, free: 97.04 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006408/0.9903, allocations: 120.9 kB / 0.7023 GB, free: 97.04 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001582/0.9905, allocations: 135.5 kB / 0.7025 GB, free: 97.03 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00624/0.9967, allocations: 3.011 MB / 0.7054 GB, free: 97 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02192/1.019, allocations: 11.64 MB / 0.7168 GB, free: 91.85 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003584/1.022, allocations: 2.239 MB / 0.7189 GB, free: 90.62 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001581/1.024, allocations: 1.095 MB / 0.72 GB, free: 90.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003354/1.024, allocations: 227.1 kB / 0.7202 GB, free: 90.01 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/1.024, allocations: 52.62 kB / 0.7203 GB, free: 89.96 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 4.549e-06/1.024, allocations: 0 / 0.7203 GB, free: 89.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=156): time 0.01887/1.043, allocations: 8.315 MB / 0.7284 GB, free: 86.92 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/1.043, allocations: 70.34 kB / 0.7285 GB, free: 86.86 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002766/1.046, allocations: 1.927 MB / 0.7304 GB, free: 86.1 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001305/1.046, allocations: 49.64 kB / 0.7304 GB, free: 86.05 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007063/1.047, allocations: 1.371 MB / 0.7317 GB, free: 85 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003565/1.047, allocations: 0.5233 MB / 0.7323 GB, free: 84.59 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.993e-05/1.047, allocations: 34 kB / 0.7323 GB, free: 84.57 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/1.047, allocations: 378.7 kB / 0.7326 GB, free: 84.23 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001205/1.049, allocations: 0.8996 MB / 0.7335 GB, free: 83.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/1.05, allocations: 1.356 MB / 0.7348 GB, free: 83.04 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009067/1.059, allocations: 4.565 MB / 0.7393 GB, free: 81.08 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.361e-05/1.059, allocations: 7.656 kB / 0.7393 GB, free: 81.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004642/1.064, allocations: 2.948 MB / 0.7422 GB, free: 79.89 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.871e-05/1.064, allocations: 10.31 kB / 0.7422 GB, free: 79.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.59e-05/1.064, allocations: 12.72 kB / 0.7422 GB, free: 79.89 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001015/1.065, allocations: 455.8 kB / 0.7426 GB, free: 79.76 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001577/1.067, allocations: 455.1 kB / 0.7431 GB, free: 79.72 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006039/1.073, allocations: 7.059 MB / 0.75 GB, free: 74.46 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002151/1.075, allocations: 133.4 kB / 0.7501 GB, free: 74.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003256/1.075, allocations: 77.42 kB / 0.7502 GB, free: 74.41 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.002306/1.077, allocations: 0.9006 MB / 0.7511 GB, free: 73.92 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008298/1.078, allocations: 207.4 kB / 0.7513 GB, free: 73.81 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005537/1.084, allocations: 3.01 MB / 0.7542 GB, free: 72.64 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-05/1.084, allocations: 20.69 kB / 0.7542 GB, free: 72.63 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.799e-05/1.084, allocations: 14.75 kB / 0.7542 GB, free: 72.63 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.975e-05/1.084, allocations: 6.938 kB / 0.7542 GB, free: 72.63 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01119/1.095, allocations: 6.182 MB / 0.7603 GB, free: 70.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/1.095, allocations: 3.844 kB / 0.7603 GB, free: 70.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009988/1.096, allocations: 242.6 kB / 0.7605 GB, free: 70.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002048/1.098, allocations: 0.8349 MB / 0.7613 GB, free: 69.85 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/1.098, allocations: 37.52 kB / 0.7614 GB, free: 69.83 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009613/1.108, allocations: 10.23 MB / 0.7713 GB, free: 63.22 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/1.108, allocations: 0 / 0.7713 GB, free: 63.22 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006263/1.114, allocations: 4.278 MB / 0.7755 GB, free: 61.39 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/1.115, allocations: 0.4925 MB / 0.776 GB, free: 61 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005033/1.116, allocations: 36 kB / 0.776 GB, free: 60.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001216/1.117, allocations: 102.5 kB / 0.7761 GB, free: 60.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00036/1.118, allocations: 125.3 kB / 0.7763 GB, free: 60.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/1.118, allocations: 49.05 kB / 0.7763 GB, free: 60.78 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002109/1.12, allocations: 1.325 MB / 0.7776 GB, free: 59.64 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.91e-07/1.12, allocations: 0 / 0.7776 GB, free: 59.64 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002601/1.122, allocations: 0.6284 MB / 0.7782 GB, free: 59.02 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.0006782/1.123, allocations: 406.7 kB / 0.7786 GB, free: 58.69 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004114/1.127, allocations: 2.667 MB / 0.7812 GB, free: 56.29 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/1.127, allocations: 0 / 0.7812 GB, free: 56.29 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002288/1.13, allocations: 1.7 MB / 0.7829 GB, free: 54.75 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003965/1.134, allocations: 0.5022 MB / 0.7834 GB, free: 54.34 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/1.144, allocations: 6.912 MB / 0.7901 GB, free: 48.01 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001687/1.146, allocations: 2.221 MB / 0.7923 GB, free: 46.22 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001802/1.148, allocations: 466.3 kB / 0.7927 GB, free: 45.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004268/1.148, allocations: 148.8 kB / 0.7929 GB, free: 45.77 MB / 490.7 MB Notification: Performance of SimCode: time 1.032e-06/1.148, allocations: 0 / 0.7929 GB, free: 45.77 MB / 490.7 MB Notification: Performance of Templates: time 0.05338/1.201, allocations: 34.83 MB / 0.8269 GB, free: 14.63 MB / 490.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)