Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009815/0.0009814, allocations: 194.5 kB / 16.78 MB, free: 4.914 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.5 MB / 244.1 MB, free: 8.082 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007677/0.0007676, allocations: 99.73 kB / 296.1 MB, free: 6.875 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4207/0.4207, allocations: 44.82 MB / 393 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000295/0.0002951, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.359, allocations: 62.95 MB / 0.5165 GB, free: 37.02 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1519/0.511, allocations: 124.6 MB / 0.6381 GB, free: 12.74 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002723/0.5113, allocations: 75.97 kB / 0.6382 GB, free: 12.66 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.439/0.9503, allocations: 62.22 MB / 0.699 GB, free: 103.2 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.9504, allocations: 0 / 0.699 GB, free: 103.2 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002053/0.9506, allocations: 90.3 kB / 0.699 GB, free: 103.2 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.007011/0.9576, allocations: 3.253 MB / 0.7022 GB, free: 101.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.9577, allocations: 15.34 kB / 0.7022 GB, free: 101.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001244/0.9589, allocations: 408.9 kB / 0.7026 GB, free: 101.6 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004152/0.9631, allocations: 2.246 MB / 0.7048 GB, free: 101 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000186/0.9633, allocations: 212.6 kB / 0.705 GB, free: 101 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004637/0.9637, allocations: 291.9 kB / 0.7053 GB, free: 101 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006402/0.9702, allocations: 3.707 MB / 0.7089 GB, free: 100.6 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.451e-05/0.9703, allocations: 11.23 kB / 0.7089 GB, free: 100.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002871/0.9706, allocations: 125.1 kB / 0.7091 GB, free: 100.6 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001475/0.9707, allocations: 135.4 kB / 0.7092 GB, free: 100.6 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005295/0.976, allocations: 3.005 MB / 0.7121 GB, free: 99.44 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01822/0.9942, allocations: 11.64 MB / 0.7235 GB, free: 93.62 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0034/0.9977, allocations: 2.265 MB / 0.7257 GB, free: 92.38 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00135/0.9991, allocations: 1.099 MB / 0.7268 GB, free: 91.96 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003174/0.9994, allocations: 223.1 kB / 0.727 GB, free: 91.77 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.9995, allocations: 53.12 kB / 0.727 GB, free: 91.71 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 3.927e-06/0.9995, allocations: 0 / 0.727 GB, free: 91.71 MB / 490.7 MB Notification: Performance of matching and sorting (n=156): time 0.01624/1.016, allocations: 8.306 MB / 0.7351 GB, free: 88.63 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/1.016, allocations: 67.34 kB / 0.7352 GB, free: 88.57 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002605/1.018, allocations: 1.93 MB / 0.7371 GB, free: 87.82 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001274/1.019, allocations: 53.55 kB / 0.7371 GB, free: 87.76 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000698/1.019, allocations: 1.375 MB / 0.7385 GB, free: 86.71 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003227/1.02, allocations: 0.522 MB / 0.739 GB, free: 86.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/1.02, allocations: 35.75 kB / 0.739 GB, free: 86.28 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/1.02, allocations: 383.2 kB / 0.7394 GB, free: 85.94 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001231/1.021, allocations: 0.9008 MB / 0.7403 GB, free: 85.61 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/1.022, allocations: 1.341 MB / 0.7416 GB, free: 84.75 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00945/1.032, allocations: 4.576 MB / 0.7461 GB, free: 82.78 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-05/1.032, allocations: 3.656 kB / 0.7461 GB, free: 82.78 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004388/1.036, allocations: 2.949 MB / 0.7489 GB, free: 81.59 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.925e-05/1.036, allocations: 11.03 kB / 0.7489 GB, free: 81.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/1.036, allocations: 13.78 kB / 0.749 GB, free: 81.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009545/1.037, allocations: 451.4 kB / 0.7494 GB, free: 81.46 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/1.039, allocations: 459 kB / 0.7498 GB, free: 81.42 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005746/1.045, allocations: 7.044 MB / 0.7567 GB, free: 76.15 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002044/1.047, allocations: 137.5 kB / 0.7568 GB, free: 76.12 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00018/1.047, allocations: 69.84 kB / 0.7569 GB, free: 76.11 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.001866/1.049, allocations: 0.9095 MB / 0.7578 GB, free: 75.62 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004899/1.049, allocations: 202.2 kB / 0.758 GB, free: 75.51 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004777/1.054, allocations: 3.019 MB / 0.7609 GB, free: 74.33 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/1.054, allocations: 13.5 kB / 0.7609 GB, free: 74.33 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/1.054, allocations: 14.62 kB / 0.761 GB, free: 74.33 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/1.054, allocations: 7.125 kB / 0.761 GB, free: 74.33 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009648/1.064, allocations: 6.196 MB / 0.767 GB, free: 70.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/1.064, allocations: 4.031 kB / 0.767 GB, free: 70.69 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009724/1.065, allocations: 240 kB / 0.7673 GB, free: 70.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002013/1.067, allocations: 0.8325 MB / 0.7681 GB, free: 69.85 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001351/1.067, allocations: 43.19 kB / 0.7681 GB, free: 69.81 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01037/1.077, allocations: 10.24 MB / 0.7781 GB, free: 60.25 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/1.078, allocations: 4 kB / 0.7781 GB, free: 60.25 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0068/1.084, allocations: 4.28 MB / 0.7823 GB, free: 56.46 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001257/1.086, allocations: 0.4903 MB / 0.7828 GB, free: 56.01 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002824/1.086, allocations: 35.8 kB / 0.7828 GB, free: 55.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/1.087, allocations: 99.78 kB / 0.7829 GB, free: 55.91 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003088/1.087, allocations: 124.8 kB / 0.783 GB, free: 55.83 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/1.087, allocations: 47.98 kB / 0.7831 GB, free: 55.78 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001836/1.089, allocations: 1.321 MB / 0.7843 GB, free: 54.44 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.089, allocations: 0 / 0.7843 GB, free: 54.44 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002168/1.091, allocations: 0.6289 MB / 0.785 GB, free: 53.81 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.0006225/1.092, allocations: 426.2 kB / 0.7854 GB, free: 53.45 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003653/1.096, allocations: 2.666 MB / 0.788 GB, free: 50.75 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/1.096, allocations: 0 / 0.788 GB, free: 50.75 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002114/1.098, allocations: 1.691 MB / 0.7896 GB, free: 49.02 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003301/1.101, allocations: 0.5103 MB / 0.7901 GB, free: 48.53 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009013/1.11, allocations: 6.98 MB / 0.7969 GB, free: 41.52 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001591/1.112, allocations: 2.194 MB / 0.7991 GB, free: 39.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008825/1.113, allocations: 163.4 kB / 0.7992 GB, free: 39.14 MB / 490.7 MB Notification: Performance of SimCode: time 1.142e-06/1.113, allocations: 0 / 0.7992 GB, free: 39.14 MB / 490.7 MB Notification: Performance of Templates: time 0.08913/1.202, allocations: 78.88 MB / 0.8763 GB, free: 8.371 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)