Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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) 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(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") [: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.001169/0.001169, allocations: 190 kB / 8.132 MB, free: 2.199 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.182/1.182, allocations: 194.2 MB / 202.8 MB, free: 8.68 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.001791/0.001791, allocations: 116.1 kB / 247.7 MB, free: 6.363 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.454e-06/7.464e-06, allocations: 0 / 297.6 MB, free: 7.98 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08142/0.08144, allocations: 44.48 MB / 342.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2468/0.3283, allocations: 112.3 MB / 454.4 MB, free: 15.52 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002208/0.3286, allocations: 86.31 kB / 454.5 MB, free: 15.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.3582/0.6868, allocations: 78.83 MB / 0.5208 GB, free: 74.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002216/0.687, allocations: 93.3 kB / 0.5209 GB, free: 74.17 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.007267/0.6943, allocations: 3.422 MB / 0.5242 GB, free: 72.94 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.6943, allocations: 11.75 kB / 0.5242 GB, free: 72.94 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003299/0.6977, allocations: 0.6434 MB / 0.5249 GB, free: 72.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008011/0.7057, allocations: 3.361 MB / 0.5281 GB, free: 72.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001612/0.7059, allocations: 109.4 kB / 0.5282 GB, free: 72.16 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008467/0.7067, allocations: 212 kB / 0.5284 GB, free: 72.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006277/0.713, allocations: 3.232 MB / 0.5316 GB, free: 72.14 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006921/0.72, allocations: 3.861 MB / 0.5354 GB, free: 71.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.162e-05/0.7201, allocations: 0 / 0.5354 GB, free: 71.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003074/0.7204, allocations: 6.406 kB / 0.5354 GB, free: 71.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001241/0.7206, allocations: 167.4 kB / 0.5355 GB, free: 71.69 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02134/0.7419, allocations: 13.92 MB / 0.5491 GB, free: 68.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001778/0.7437, allocations: 1.185 MB / 0.5503 GB, free: 68.24 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001784/0.7455, allocations: 1.264 MB / 0.5515 GB, free: 68.22 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006672/0.7522, allocations: 4.086 MB / 0.5555 GB, free: 66.41 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.7523, allocations: 52.36 kB / 0.5556 GB, free: 66.35 MB / 394.7 MB Notification: Performance of pre-optimization done (n=155): time 3.827e-06/0.7523, allocations: 3.562 kB / 0.5556 GB, free: 66.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=159): time 0.007263/0.7596, allocations: 4.644 MB / 0.5601 GB, free: 64.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.617e-05/0.7596, allocations: 68.78 kB / 0.5602 GB, free: 63.95 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002231/0.7619, allocations: 1.552 MB / 0.5617 GB, free: 63.29 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001593/0.762, allocations: 32.58 kB / 0.5617 GB, free: 63.26 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000516/0.7626, allocations: 1.323 MB / 0.563 GB, free: 62.3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003433/0.7629, allocations: 0.526 MB / 0.5635 GB, free: 61.88 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.285e-05/0.763, allocations: 0 / 0.5635 GB, free: 61.88 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.7631, allocations: 379.9 kB / 0.5639 GB, free: 61.55 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001046/0.7642, allocations: 0.7821 MB / 0.5646 GB, free: 61.23 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001301/0.7655, allocations: 1.401 MB / 0.566 GB, free: 60.11 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001654/0.7672, allocations: 1.078 MB / 0.5671 GB, free: 59.69 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.7672, allocations: 7.812 kB / 0.5671 GB, free: 59.69 MB / 394.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.004017/0.7712, allocations: 2.576 MB / 0.5696 GB, free: 58.71 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.7712, allocations: 5.031 kB / 0.5696 GB, free: 58.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.353e-05/0.7713, allocations: 19.28 kB / 0.5696 GB, free: 58.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003659/0.7716, allocations: 141.3 kB / 0.5698 GB, free: 58.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001852/0.7735, allocations: 493 kB / 0.5702 GB, free: 58.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002021/0.7755, allocations: 2.943 MB / 0.5731 GB, free: 55.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001803/0.7774, allocations: 57.33 kB / 0.5732 GB, free: 55.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001849/0.7776, allocations: 89.61 kB / 0.5732 GB, free: 55.9 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 249 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003276/0.7779, allocations: 176.4 kB / 0.5734 GB, free: 55.77 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003672/0.7783, allocations: 206.5 kB / 0.5736 GB, free: 55.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003685/0.782, allocations: 2.348 MB / 0.5759 GB, free: 54.62 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.782, allocations: 18.89 kB / 0.5759 GB, free: 54.62 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.782, allocations: 7.781 kB / 0.5759 GB, free: 54.61 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.353e-05/0.782, allocations: 14.92 kB / 0.5759 GB, free: 54.61 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008467/0.7905, allocations: 5.293 MB / 0.5811 GB, free: 52.17 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.316e-06/0.7906, allocations: 2.031 kB / 0.5811 GB, free: 52.17 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001316/0.7919, allocations: 257 kB / 0.5813 GB, free: 52.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007613/0.7927, allocations: 277.5 kB / 0.5816 GB, free: 52.05 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/0.7928, allocations: 14 kB / 0.5816 GB, free: 52.05 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005296/0.7981, allocations: 6.721 MB / 0.5882 GB, free: 46.15 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.177e-06/0.7981, allocations: 14.52 kB / 0.5882 GB, free: 46.14 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005567/0.8037, allocations: 3.714 MB / 0.5918 GB, free: 44.22 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001323/0.8051, allocations: 479.1 kB / 0.5923 GB, free: 43.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003948/0.8055, allocations: 12.12 kB / 0.5923 GB, free: 43.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001284/0.8068, allocations: 53.75 kB / 0.5924 GB, free: 43.89 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.807, allocations: 84.62 kB / 0.5924 GB, free: 43.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.8071, allocations: 42.36 kB / 0.5925 GB, free: 43.87 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001909/0.809, allocations: 1.154 MB / 0.5936 GB, free: 43.36 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002555/0.8116, allocations: 0.5515 MB / 0.5941 GB, free: 43.33 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,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 (137): * Single equations (assignments): 133 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006574/0.8122, allocations: 423.8 kB / 0.5945 GB, free: 43.18 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00357/0.8158, allocations: 2.242 MB / 0.5967 GB, free: 42.21 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.8158, allocations: 1.062 kB / 0.5967 GB, free: 42.21 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001973/0.8178, allocations: 1.41 MB / 0.5981 GB, free: 41.43 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002773/0.8206, allocations: 412.6 kB / 0.5985 GB, free: 41.31 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01093/0.8316, allocations: 4.996 MB / 0.6034 GB, free: 39.27 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002628/0.8342, allocations: 2.64 MB / 0.606 GB, free: 38.18 MB / 394.7 MB Notification: Performance of SimCode: time 6.21e-07/0.8343, allocations: 0 / 0.606 GB, free: 38.18 MB / 394.7 MB Notification: Performance of Templates: time 0.04908/0.8834, allocations: 27.85 MB / 0.6332 GB, free: 24.17 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)