Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-05,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-05,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") [: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.1+maint.om/package.mo): time 0.003208/0.003207, allocations: 183.1 kB / 7.452 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.236/1.236, allocations: 170.6 MB / 178.4 MB, free: 15.45 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00162/0.00162, allocations: 108.4 kB / 217.7 MB, free: 8.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.194e-06/7.214e-06, allocations: 0 / 261.8 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08321/0.08324, allocations: 38.75 MB / 300.5 MB, free: 3.891 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3012/0.3845, allocations: 116.1 MB / 416.6 MB, free: 1.258 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002194/0.3847, allocations: 82.08 kB / 416.7 MB, free: 1.219 MB / 298.7 MB Notification: Performance of FrontEnd: time 0.4692/0.8539, allocations: 117 MB / 0.5212 GB, free: 48.45 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006784/0.8546, allocations: 140.9 kB / 0.5213 GB, free: 48.43 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1354 * Number of variables: 1354 Notification: Performance of Generate backend data structure: time 0.01772/0.8724, allocations: 4.963 MB / 0.5262 GB, free: 46.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.8724, allocations: 11.59 kB / 0.5262 GB, free: 46.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0053/0.8778, allocations: 0.7772 MB / 0.5269 GB, free: 45.74 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01216/0.8899, allocations: 3.679 MB / 0.5305 GB, free: 43.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000426/0.8904, allocations: 164.3 kB / 0.5307 GB, free: 43.75 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002649/0.8931, allocations: 312.6 kB / 0.531 GB, free: 43.74 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01683/0.9099, allocations: 4.784 MB / 0.5356 GB, free: 41.72 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02409/0.9341, allocations: 5.843 MB / 0.5414 GB, free: 38.35 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004082/0.9345, allocations: 12.02 kB / 0.5414 GB, free: 38.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001856/0.9364, allocations: 12.03 kB / 0.5414 GB, free: 38.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003013/0.9367, allocations: 242.3 kB / 0.5416 GB, free: 38.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04533/0.982, allocations: 20.19 MB / 0.5613 GB, free: 19.12 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002457/0.9845, allocations: 1.559 MB / 0.5628 GB, free: 17.57 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002431/0.987, allocations: 1.872 MB / 0.5647 GB, free: 15.69 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003525/0.9874, allocations: 150.8 kB / 0.5648 GB, free: 15.53 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.9874, allocations: 60.55 kB / 0.5649 GB, free: 15.46 MB / 346.7 MB Notification: Performance of pre-optimization done (n=230): time 4.017e-06/0.9874, allocations: 0 / 0.5649 GB, free: 15.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=279): time 0.01897/1.006, allocations: 9.492 MB / 0.5741 GB, free: 5.914 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.932e-05/1.006, allocations: 81.61 kB / 0.5742 GB, free: 5.82 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003832/1.01, allocations: 2.089 MB / 0.5763 GB, free: 3.723 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004965/1.011, allocations: 25.7 kB / 0.5763 GB, free: 3.691 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007896/1.012, allocations: 1.919 MB / 0.5782 GB, free: 1.742 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007027/1.012, allocations: 0.9199 MB / 0.5791 GB, free: 0.8086 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/1.012, allocations: 0 / 0.5791 GB, free: 0.8086 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/1.013, allocations: 437 kB / 0.5795 GB, free: 384 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002255/1.015, allocations: 1.405 MB / 0.5808 GB, free: 14.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002994/1.018, allocations: 2.312 MB / 0.5831 GB, free: 12.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003259/1.021, allocations: 1.848 MB / 0.5849 GB, free: 10.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.689e-05/1.021, allocations: 8 kB / 0.5849 GB, free: 10.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=428) (initialization): time 0.009759/1.031, allocations: 4.901 MB / 0.5897 GB, free: 5.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.416e-05/1.031, allocations: 4 kB / 0.5897 GB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.886e-05/1.031, allocations: 32 kB / 0.5897 GB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002746/1.034, allocations: 0.9975 MB / 0.5907 GB, free: 4.355 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003461/1.037, allocations: 0.7137 MB / 0.5914 GB, free: 3.641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2058/1.243, allocations: 12.53 MB / 0.6036 GB, free: 99.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003343/1.247, allocations: 99.42 kB / 0.6037 GB, free: 99.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004601/1.247, allocations: 141.9 kB / 0.6039 GB, free: 99.06 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (366): * Single equations (assignments): 359 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(6,72.2%) 23,(1,100.0%) 1,(4,93.8%) 22,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005992/1.248, allocations: 196.4 kB / 0.6041 GB, free: 98.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007293/1.248, allocations: 318.6 kB / 0.6044 GB, free: 98.95 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007063/1.256, allocations: 4.387 MB / 0.6086 GB, free: 98.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.392e-05/1.256, allocations: 29.62 kB / 0.6087 GB, free: 98.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.177e-05/1.256, allocations: 13.62 kB / 0.6087 GB, free: 98.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.694e-05/1.256, allocations: 13.28 kB / 0.6087 GB, free: 98.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01867/1.274, allocations: 9.595 MB / 0.6181 GB, free: 97.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.459e-05/1.274, allocations: 6.656 kB / 0.6181 GB, free: 97.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001852/1.276, allocations: 429.6 kB / 0.6185 GB, free: 97.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002656/1.279, allocations: 1.068 MB / 0.6195 GB, free: 97.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002126/1.279, allocations: 28.33 kB / 0.6196 GB, free: 97.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01496/1.294, allocations: 15.7 MB / 0.6349 GB, free: 89.01 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.02e-05/1.294, allocations: 13.19 kB / 0.6349 GB, free: 89.01 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01023/1.304, allocations: 7.074 MB / 0.6418 GB, free: 87.39 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002368/1.307, allocations: 0.7067 MB / 0.6425 GB, free: 86.97 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000665/1.308, allocations: 23.27 kB / 0.6425 GB, free: 86.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00163/1.309, allocations: 97.25 kB / 0.6426 GB, free: 86.96 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003051/1.309, allocations: 150.9 kB / 0.6428 GB, free: 86.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001762/1.31, allocations: 85.03 kB / 0.6428 GB, free: 86.92 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.002467/1.312, allocations: 1.542 MB / 0.6443 GB, free: 86.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004188/1.316, allocations: 0.9289 MB / 0.6453 GB, free: 86.26 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.port_n.Phi.re,smpmM.stator.port_n.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (215): * Single equations (assignments): 208 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 23,(4,93.8%) 18,(1,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000873/1.317, allocations: 461.7 kB / 0.6457 GB, free: 86.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007209/1.324, allocations: 4.453 MB / 0.65 GB, free: 84.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.715e-05/1.325, allocations: 2.938 kB / 0.65 GB, free: 84.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004493/1.329, allocations: 2.781 MB / 0.6528 GB, free: 82.78 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003901/1.333, allocations: 0.6539 MB / 0.6534 GB, free: 82.63 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01684/1.35, allocations: 8.337 MB / 0.6615 GB, free: 79.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004957/1.355, allocations: 3.698 MB / 0.6652 GB, free: 77.95 MB / 362.7 MB Notification: Performance of SimCode: time 9.02e-07/1.355, allocations: 3.844 kB / 0.6652 GB, free: 77.95 MB / 362.7 MB Notification: Performance of Templates: time 0.08936/1.444, allocations: 47.49 MB / 0.7115 GB, free: 45.25 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)