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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.003249/0.003249, allocations: 189.2 kB / 7.463 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.369/1.369, allocations: 194.2 MB / 202.1 MB, free: 8.746 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.001723/0.001723, allocations: 121.2 kB / 247.1 MB, free: 6.367 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.165/0.165, allocations: 39.95 MB / 331.9 MB, free: 4.965 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.262e-06/6.292e-06, allocations: 0 / 392.8 MB, free: 75.9 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0984/0.09842, allocations: 54.87 MB / 447.6 MB, free: 21 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3069/0.4053, allocations: 116.7 MB / 0.5511 GB, free: 15.95 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/0.4056, allocations: 70.41 kB / 0.5512 GB, free: 15.92 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.17/0.5756, allocations: 60.67 MB / 0.6105 GB, free: 11.24 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003332/0.5759, allocations: 87.86 kB / 0.6105 GB, free: 11.16 MB / 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.007909/0.5839, allocations: 2.861 MB / 0.6133 GB, free: 8.23 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.5839, allocations: 12.02 kB / 0.6133 GB, free: 8.219 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002099/0.586, allocations: 403.5 kB / 0.6137 GB, free: 7.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00688/0.5929, allocations: 2.16 MB / 0.6158 GB, free: 5.605 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001803/0.5931, allocations: 99.98 kB / 0.6159 GB, free: 5.508 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001133/0.5943, allocations: 167.8 kB / 0.6161 GB, free: 5.344 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006751/0.6011, allocations: 2.776 MB / 0.6188 GB, free: 2.562 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007028/0.6081, allocations: 3.25 MB / 0.622 GB, free: 15.17 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.973e-05/0.6082, allocations: 7.906 kB / 0.622 GB, free: 15.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002454/0.6085, allocations: 4 kB / 0.622 GB, free: 15.16 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001291/0.6086, allocations: 137.5 kB / 0.6221 GB, free: 15.02 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02169/0.6303, allocations: 11.07 MB / 0.6329 GB, free: 3.66 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002161/0.6325, allocations: 1.224 MB / 0.6341 GB, free: 2.438 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001714/0.6343, allocations: 1.122 MB / 0.6352 GB, free: 1.316 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003853/0.6347, allocations: 223.5 kB / 0.6354 GB, free: 1.059 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.724e-05/0.6347, allocations: 47.81 kB / 0.6355 GB, free: 1.004 MB / 442.7 MB Notification: Performance of pre-optimization done (n=147): time 3.567e-06/0.6347, allocations: 0 / 0.6355 GB, free: 1.004 MB / 442.7 MB Notification: Performance of matching and sorting (n=161): time 0.01148/0.6462, allocations: 5.644 MB / 0.641 GB, free: 11.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.464e-05/0.6463, allocations: 72.7 kB / 0.6411 GB, free: 11.22 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003201/0.6495, allocations: 1.439 MB / 0.6425 GB, free: 9.781 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002501/0.6498, allocations: 25.7 kB / 0.6425 GB, free: 9.75 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001093/0.6509, allocations: 1.069 MB / 0.6435 GB, free: 8.664 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008825/0.6518, allocations: 0.5234 MB / 0.6441 GB, free: 8.133 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002049/0.652, allocations: 0 / 0.6441 GB, free: 8.133 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002879/0.6523, allocations: 381.9 kB / 0.6444 GB, free: 7.754 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002298/0.6546, allocations: 0.8747 MB / 0.6453 GB, free: 6.879 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002359/0.657, allocations: 1.308 MB / 0.6465 GB, free: 5.387 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001893/0.6589, allocations: 1.113 MB / 0.6476 GB, free: 4.277 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-05/0.659, allocations: 4 kB / 0.6476 GB, free: 4.273 MB / 458.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.005125/0.6641, allocations: 2.778 MB / 0.6503 GB, free: 1.473 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.6641, allocations: 4 kB / 0.6504 GB, free: 1.469 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.193e-05/0.6642, allocations: 19.91 kB / 0.6504 GB, free: 1.449 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001195/0.6654, allocations: 454.5 kB / 0.6508 GB, free: 0.9961 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001902/0.6673, allocations: 435.3 kB / 0.6512 GB, free: 0.5703 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007315/0.6746, allocations: 6.536 MB / 0.6576 GB, free: 9.68 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002204/0.6769, allocations: 63.89 kB / 0.6577 GB, free: 9.617 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004386/0.6773, allocations: 79.98 kB / 0.6577 GB, free: 9.539 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 (209): * Single equations (assignments): 206 * 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.0006276/0.678, allocations: 152.3 kB / 0.6579 GB, free: 9.383 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007329/0.6787, allocations: 189.7 kB / 0.6581 GB, free: 9.195 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006051/0.6848, allocations: 2.879 MB / 0.6609 GB, free: 6.289 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.882e-05/0.6848, allocations: 16.19 kB / 0.6609 GB, free: 6.273 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.981e-05/0.6848, allocations: 8 kB / 0.6609 GB, free: 6.266 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.388e-05/0.6849, allocations: 11.91 kB / 0.6609 GB, free: 6.254 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01293/0.6978, allocations: 5.707 MB / 0.6665 GB, free: 460 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.6978, allocations: 4.062 kB / 0.6665 GB, free: 456 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/0.6991, allocations: 235.7 kB / 0.6667 GB, free: 220 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1989/0.898, allocations: 0.8391 MB / 0.6675 GB, free: 84.95 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003879/0.8984, allocations: 24.23 kB / 0.6676 GB, free: 84.95 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01081/0.9092, allocations: 9.572 MB / 0.6769 GB, free: 81.25 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.215e-06/0.9093, allocations: 5.344 kB / 0.6769 GB, free: 81.25 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006475/0.9158, allocations: 4.427 MB / 0.6812 GB, free: 80.75 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/0.917, allocations: 488.8 kB / 0.6817 GB, free: 80.65 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006/0.9176, allocations: 8.422 kB / 0.6817 GB, free: 80.65 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00142/0.9191, allocations: 59.89 kB / 0.6818 GB, free: 80.65 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.9193, allocations: 89.8 kB / 0.6819 GB, free: 80.65 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/0.9194, allocations: 52.3 kB / 0.6819 GB, free: 80.65 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.00203/0.9214, allocations: 1.087 MB / 0.683 GB, free: 80.54 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002548/0.924, allocations: 0.5344 MB / 0.6835 GB, free: 80.54 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 (115): * Single equations (assignments): 112 * 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.0006311/0.9246, allocations: 376.8 kB / 0.6838 GB, free: 80.44 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003649/0.9283, allocations: 2.526 MB / 0.6863 GB, free: 80.12 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/0.9283, allocations: 0 / 0.6863 GB, free: 80.12 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002012/0.9304, allocations: 1.529 MB / 0.6878 GB, free: 79.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002446/0.9328, allocations: 395.9 kB / 0.6882 GB, free: 79.79 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/0.9435, allocations: 4.722 MB / 0.6928 GB, free: 78.79 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003242/0.9468, allocations: 2.394 MB / 0.6951 GB, free: 78.03 MB / 474.7 MB Notification: Performance of SimCode: time 9.52e-07/0.9468, allocations: 0 / 0.6951 GB, free: 78.03 MB / 474.7 MB Notification: Performance of Templates: time 0.04895/0.9958, allocations: 29.35 MB / 0.7238 GB, free: 76.23 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)