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_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") [: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.003231/0.003231, allocations: 176.2 kB / 7.445 MB, free: 2.316 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.262/1.262, allocations: 170.6 MB / 178.4 MB, free: 15.43 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.001718/0.001718, allocations: 108.5 kB / 217.7 MB, free: 8.211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.085e-06/8.115e-06, allocations: 4 kB / 261.8 MB, free: 26.63 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08654/0.08657, allocations: 38.76 MB / 300.5 MB, free: 3.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3458/0.4324, allocations: 98.58 MB / 399.1 MB, free: 2.453 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.4327, allocations: 82.14 kB / 399.2 MB, free: 2.41 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.544/0.9767, allocations: 149 MB / 0.5353 GB, free: 55.08 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0008272/0.9776, allocations: 163.8 kB / 0.5355 GB, free: 54.92 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: 1739 * Number of variables: 1739 Notification: Performance of Generate backend data structure: time 0.02365/1.001, allocations: 6.206 MB / 0.5415 GB, free: 48.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/1.001, allocations: 8.031 kB / 0.5415 GB, free: 48.63 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007013/1.008, allocations: 1.046 MB / 0.5426 GB, free: 47.58 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01343/1.022, allocations: 4.726 MB / 0.5472 GB, free: 42.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004763/1.022, allocations: 215.9 kB / 0.5474 GB, free: 42.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003303/1.026, allocations: 395.8 kB / 0.5477 GB, free: 42.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0206/1.046, allocations: 6.185 MB / 0.5538 GB, free: 36.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02771/1.074, allocations: 7.543 MB / 0.5612 GB, free: 28.28 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004354/1.075, allocations: 7.906 kB / 0.5612 GB, free: 28.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002472/1.077, allocations: 4 kB / 0.5612 GB, free: 28.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002826/1.077, allocations: 297.3 kB / 0.5615 GB, free: 27.97 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05699/1.134, allocations: 25.39 MB / 0.5862 GB, free: 2.211 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002707/1.137, allocations: 1.679 MB / 0.5879 GB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1714/1.308, allocations: 2.439 MB / 0.5903 GB, free: 77.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001337/1.309, allocations: 32.78 kB / 0.5903 GB, free: 77.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.017e-05/1.309, allocations: 62.08 kB / 0.5904 GB, free: 77.02 MB / 346.7 MB Notification: Performance of pre-optimization done (n=256): time 4.449e-06/1.309, allocations: 0 / 0.5904 GB, free: 77.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=302): time 0.01846/1.327, allocations: 9.479 MB / 0.5996 GB, free: 75.94 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/1.327, allocations: 83.22 kB / 0.5997 GB, free: 75.88 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005953/1.333, allocations: 2.278 MB / 0.6019 GB, free: 75.64 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008837/1.334, allocations: 32.33 kB / 0.6019 GB, free: 75.61 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002302/1.336, allocations: 2.37 MB / 0.6043 GB, free: 74.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001971/1.338, allocations: 0.983 MB / 0.6052 GB, free: 73.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002444/1.339, allocations: 5.312 kB / 0.6052 GB, free: 73.66 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003711/1.339, allocations: 446.7 kB / 0.6057 GB, free: 73.35 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003067/1.342, allocations: 1.437 MB / 0.6071 GB, free: 73.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003373/1.346, allocations: 2.386 MB / 0.6094 GB, free: 72.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003118/1.349, allocations: 1.916 MB / 0.6113 GB, free: 72.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.101e-05/1.349, allocations: 10.19 kB / 0.6113 GB, free: 72.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=453) (initialization): time 0.008572/1.357, allocations: 4.996 MB / 0.6161 GB, free: 71.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/1.357, allocations: 6.125 kB / 0.6162 GB, free: 71.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.734e-05/1.357, allocations: 30.41 kB / 0.6162 GB, free: 71.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002447/1.36, allocations: 0.9405 MB / 0.6171 GB, free: 71.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003186/1.363, allocations: 0.7266 MB / 0.6178 GB, free: 71.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01344/1.377, allocations: 13.94 MB / 0.6314 GB, free: 64.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003602/1.38, allocations: 83.8 kB / 0.6315 GB, free: 64.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007303/1.381, allocations: 141.8 kB / 0.6316 GB, free: 64.04 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (379): * Single equations (assignments): 371 * 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: 6 * 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: 6 {(4,93.8%) 20,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 20,(1,100.0%) 1,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006906/1.382, allocations: 197.9 kB / 0.6318 GB, free: 63.92 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008953/1.383, allocations: 339.8 kB / 0.6321 GB, free: 63.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007379/1.39, allocations: 4.484 MB / 0.6365 GB, free: 63.29 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-05/1.39, allocations: 29.81 kB / 0.6366 GB, free: 63.29 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-05/1.39, allocations: 21.69 kB / 0.6366 GB, free: 63.29 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.923e-05/1.39, allocations: 17.72 kB / 0.6366 GB, free: 63.29 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02817/1.418, allocations: 10.92 MB / 0.6473 GB, free: 59.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.771e-05/1.418, allocations: 11.06 kB / 0.6473 GB, free: 59.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004004/1.422, allocations: 443.2 kB / 0.6477 GB, free: 59.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005379/1.428, allocations: 1.091 MB / 0.6488 GB, free: 59.57 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005698/1.428, allocations: 31.14 kB / 0.6488 GB, free: 59.56 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02859/1.457, allocations: 17.06 MB / 0.6654 GB, free: 46.85 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-05/1.457, allocations: 16.19 kB / 0.6655 GB, free: 46.85 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01955/1.477, allocations: 7.487 MB / 0.6728 GB, free: 42.58 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003646/1.48, allocations: 0.7472 MB / 0.6735 GB, free: 42.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001377/1.482, allocations: 19.41 kB / 0.6735 GB, free: 42.08 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00364/1.485, allocations: 94.33 kB / 0.6736 GB, free: 42.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005064/1.486, allocations: 175.2 kB / 0.6738 GB, free: 42.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003145/1.486, allocations: 85.7 kB / 0.6739 GB, free: 42.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.004313/1.491, allocations: 1.693 MB / 0.6755 GB, free: 41.31 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.007636/1.498, allocations: 1.044 MB / 0.6765 GB, free: 41.29 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 14 (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,smr3.inertiaRotor.w,smr3.stator.port_n.Phi.re,smr3.stator.port_n.Phi.im,smr3.stator.strayReluctance.Phi.re,smr3.stator.strayReluctance.Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (221): * Single equations (assignments): 214 * 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 {(4,93.8%) 18,(1,100.0%) 4,(4,93.8%) 18,(4,93.8%) 32,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001162/1.499, allocations: 428.6 kB / 0.6769 GB, free: 41.13 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0119/1.511, allocations: 4.682 MB / 0.6815 GB, free: 38.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-05/1.511, allocations: 0 / 0.6815 GB, free: 38.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008728/1.52, allocations: 2.939 MB / 0.6844 GB, free: 35.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007341/1.528, allocations: 0.651 MB / 0.685 GB, free: 35.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03739/1.565, allocations: 9.969 MB / 0.6948 GB, free: 26.23 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009462/1.575, allocations: 4.51 MB / 0.6992 GB, free: 22.78 MB / 346.7 MB Notification: Performance of SimCode: time 2.745e-06/1.575, allocations: 0 / 0.6992 GB, free: 22.78 MB / 346.7 MB Notification: Performance of Templates: time 0.3463/1.921, allocations: 49.92 MB / 0.7479 GB, free: 62.11 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1)