Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.003695/0.003695, allocations: 171.7 kB / 7.445 MB, free: 2.508 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.324/1.324, allocations: 170.6 MB / 178.4 MB, free: 15.4 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.001956/0.001956, allocations: 115.8 kB / 217.7 MB, free: 8.156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.036e-05/1.038e-05, allocations: 0 / 261.7 MB, free: 26.65 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.105, allocations: 38.77 MB / 300.5 MB, free: 3.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3349/0.4399, allocations: 111.5 MB / 412.1 MB, free: 5.652 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003423/0.4403, allocations: 86.67 kB / 412.2 MB, free: 5.609 MB / 298.7 MB Notification: Performance of FrontEnd: time 0.4663/0.9067, allocations: 109.2 MB / 0.5091 GB, free: 72.54 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000722/0.9074, allocations: 135.8 kB / 0.5093 GB, free: 72.51 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: 1292 * Number of variables: 1292 Notification: Performance of Generate backend data structure: time 0.01804/0.9255, allocations: 4.753 MB / 0.5139 GB, free: 70.25 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.881e-05/0.9256, allocations: 8.188 kB / 0.5139 GB, free: 70.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005767/0.9314, allocations: 0.7348 MB / 0.5146 GB, free: 69.95 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01277/0.9442, allocations: 3.482 MB / 0.518 GB, free: 68.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004936/0.9447, allocations: 159.6 kB / 0.5182 GB, free: 68.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00232/0.9471, allocations: 300.4 kB / 0.5185 GB, free: 68.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01427/0.9613, allocations: 4.632 MB / 0.523 GB, free: 66.08 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02071/0.9821, allocations: 5.634 MB / 0.5285 GB, free: 61.2 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003244/0.9825, allocations: 9.125 kB / 0.5285 GB, free: 61.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001784/0.9843, allocations: 4 kB / 0.5285 GB, free: 61.19 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002559/0.9846, allocations: 222.9 kB / 0.5287 GB, free: 60.98 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04581/1.03, allocations: 19.14 MB / 0.5474 GB, free: 42.65 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004009/1.035, allocations: 1.502 MB / 0.5489 GB, free: 41.14 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003463/1.038, allocations: 1.813 MB / 0.5506 GB, free: 39.33 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005001/1.039, allocations: 146.9 kB / 0.5508 GB, free: 39.17 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.013e-05/1.039, allocations: 60.56 kB / 0.5508 GB, free: 39.1 MB / 346.7 MB Notification: Performance of pre-optimization done (n=219): time 5.54e-06/1.039, allocations: 0 / 0.5508 GB, free: 39.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=263): time 0.02001/1.059, allocations: 9.08 MB / 0.5597 GB, free: 29.94 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.72e-05/1.059, allocations: 81.48 kB / 0.5598 GB, free: 29.85 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003407/1.062, allocations: 1.942 MB / 0.5617 GB, free: 27.89 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003862/1.063, allocations: 25.7 kB / 0.5617 GB, free: 27.86 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006771/1.063, allocations: 1.809 MB / 0.5635 GB, free: 26.02 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006198/1.064, allocations: 0.866 MB / 0.5643 GB, free: 25.14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/1.064, allocations: 0 / 0.5643 GB, free: 25.14 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/1.064, allocations: 428.5 kB / 0.5647 GB, free: 24.72 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00177/1.066, allocations: 1.346 MB / 0.566 GB, free: 23.37 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001999/1.068, allocations: 2.181 MB / 0.5682 GB, free: 20.82 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002193/1.07, allocations: 1.761 MB / 0.5699 GB, free: 19.04 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.387e-05/1.07, allocations: 8 kB / 0.5699 GB, free: 19.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=400) (initialization): time 0.007354/1.078, allocations: 4.692 MB / 0.5745 GB, free: 14.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/1.078, allocations: 8 kB / 0.5745 GB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.334e-05/1.078, allocations: 28.53 kB / 0.5745 GB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002322/1.08, allocations: 0.9769 MB / 0.5755 GB, free: 13.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003132/1.083, allocations: 0.6668 MB / 0.5761 GB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1742/1.257, allocations: 12.05 MB / 0.5879 GB, free: 94.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003549/1.261, allocations: 93.64 kB / 0.588 GB, free: 94.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008741/1.262, allocations: 132.2 kB / 0.5881 GB, free: 94.29 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 118 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (341): * Single equations (assignments): 334 * 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,75.0%) 22,(1,100.0%) 1,(4,93.8%) 20,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001318/1.263, allocations: 187.6 kB / 0.5883 GB, free: 94.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001525/1.265, allocations: 292.2 kB / 0.5886 GB, free: 94.18 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007856/1.273, allocations: 4.232 MB / 0.5927 GB, free: 93.78 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.409e-05/1.273, allocations: 25.75 kB / 0.5927 GB, free: 93.78 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.602e-05/1.273, allocations: 11.94 kB / 0.5927 GB, free: 93.78 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.721e-05/1.273, allocations: 12.98 kB / 0.5927 GB, free: 93.78 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01627/1.289, allocations: 9.072 MB / 0.6016 GB, free: 92.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/1.289, allocations: 9.469 kB / 0.6016 GB, free: 92.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001745/1.291, allocations: 404.4 kB / 0.602 GB, free: 92.96 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002652/1.294, allocations: 1.06 MB / 0.603 GB, free: 92.91 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002095/1.294, allocations: 27.59 kB / 0.6031 GB, free: 92.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01394/1.308, allocations: 15.42 MB / 0.6181 GB, free: 84.45 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.395e-06/1.308, allocations: 6.719 kB / 0.6181 GB, free: 84.45 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008755/1.317, allocations: 6.71 MB / 0.6247 GB, free: 83.22 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00276/1.319, allocations: 0.6582 MB / 0.6253 GB, free: 83.04 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00103/1.32, allocations: 19.75 kB / 0.6253 GB, free: 83.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002054/1.322, allocations: 101 kB / 0.6254 GB, free: 83.04 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003647/1.323, allocations: 145.5 kB / 0.6256 GB, free: 83.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001962/1.323, allocations: 71.88 kB / 0.6256 GB, free: 83.04 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.00293/1.326, allocations: 1.439 MB / 0.627 GB, free: 82.67 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005934/1.332, allocations: 0.8785 MB / 0.6279 GB, free: 82.66 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.port_n.Phi.re,smrM.stator.port_n.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 193 * 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%) 22,(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.001309/1.333, allocations: 405.8 kB / 0.6283 GB, free: 82.55 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007475/1.341, allocations: 4.298 MB / 0.6325 GB, free: 80.62 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.238e-06/1.341, allocations: 0 / 0.6325 GB, free: 80.62 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004281/1.345, allocations: 2.714 MB / 0.6351 GB, free: 79.27 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003609/1.349, allocations: 0.5579 MB / 0.6357 GB, free: 79.13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01738/1.366, allocations: 7.946 MB / 0.6434 GB, free: 75.96 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004265/1.37, allocations: 3.564 MB / 0.6469 GB, free: 74.66 MB / 346.7 MB Notification: Performance of SimCode: time 1.032e-06/1.37, allocations: 0 / 0.6469 GB, free: 74.66 MB / 346.7 MB Notification: Performance of Templates: time 0.06899/1.439, allocations: 43.96 MB / 0.6899 GB, free: 45.43 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)