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_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.SMPM_Inverter_MultiPhase,tolerance=1e-05,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,tolerance=1e-05,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.004276/0.004276, allocations: 174.3 kB / 7.45 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.255/1.255, allocations: 170.6 MB / 178.4 MB, free: 15.44 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.001764/0.001764, allocations: 95.94 kB / 217.7 MB, free: 8.223 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.55e-06/5.57e-06, allocations: 0 / 261.8 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0839/0.08392, allocations: 38.76 MB / 300.5 MB, free: 3.898 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2703/0.3543, allocations: 101.7 MB / 402.2 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002176/0.3545, allocations: 82.95 kB / 402.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 0.535/0.8895, allocations: 158.2 MB / 0.5473 GB, free: 42.17 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007899/0.8903, allocations: 175.6 kB / 0.5475 GB, free: 42 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: 1809 * Number of variables: 1809 Notification: Performance of Generate backend data structure: time 0.03135/0.9217, allocations: 6.443 MB / 0.5538 GB, free: 35.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.212e-05/0.9218, allocations: 16.02 kB / 0.5538 GB, free: 35.47 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009739/0.9316, allocations: 1.092 MB / 0.5549 GB, free: 34.37 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01752/0.9491, allocations: 4.924 MB / 0.5597 GB, free: 29.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000588/0.9498, allocations: 228 kB / 0.5599 GB, free: 29.2 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003186/0.953, allocations: 403.8 kB / 0.5603 GB, free: 28.81 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0226/0.9756, allocations: 6.366 MB / 0.5665 GB, free: 22.44 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03438/1.01, allocations: 7.775 MB / 0.5741 GB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003967/1.01, allocations: 7.844 kB / 0.5741 GB, free: 14.44 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002771/1.013, allocations: 12 kB / 0.5741 GB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003555/1.014, allocations: 317.7 kB / 0.5744 GB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.301/1.315, allocations: 26.51 MB / 0.6003 GB, free: 64.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003723/1.318, allocations: 1.797 MB / 0.602 GB, free: 64.37 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004157/1.323, allocations: 2.542 MB / 0.6045 GB, free: 64.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001579/1.323, allocations: 31.92 kB / 0.6046 GB, free: 64.33 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.632e-05/1.323, allocations: 69.67 kB / 0.6046 GB, free: 64.29 MB / 346.7 MB Notification: Performance of pre-optimization done (n=270): time 5.069e-06/1.323, allocations: 2.062 kB / 0.6046 GB, free: 64.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=322): time 0.02075/1.344, allocations: 10.02 MB / 0.6144 GB, free: 62.79 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/1.344, allocations: 87.19 kB / 0.6145 GB, free: 62.72 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00495/1.349, allocations: 2.43 MB / 0.6169 GB, free: 62.49 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004387/1.349, allocations: 28.8 kB / 0.6169 GB, free: 62.46 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00162/1.351, allocations: 2.473 MB / 0.6193 GB, free: 61.16 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001264/1.352, allocations: 1.048 MB / 0.6203 GB, free: 60.46 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001887/1.352, allocations: 0 / 0.6203 GB, free: 60.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000274/1.353, allocations: 456.1 kB / 0.6208 GB, free: 60.15 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002381/1.355, allocations: 1.508 MB / 0.6222 GB, free: 60.14 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002882/1.358, allocations: 2.519 MB / 0.6247 GB, free: 58.97 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002964/1.361, allocations: 2.02 MB / 0.6267 GB, free: 58.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.236e-05/1.361, allocations: 12.56 kB / 0.6267 GB, free: 58.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.009765/1.371, allocations: 5.238 MB / 0.6318 GB, free: 58.44 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/1.371, allocations: 7.344 kB / 0.6318 GB, free: 58.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.387e-05/1.371, allocations: 30.38 kB / 0.6318 GB, free: 58.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002438/1.373, allocations: 0.9761 MB / 0.6328 GB, free: 58.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003033/1.376, allocations: 0.7723 MB / 0.6335 GB, free: 58.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01444/1.391, allocations: 14.29 MB / 0.6475 GB, free: 50.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004016/1.395, allocations: 83.09 kB / 0.6476 GB, free: 50.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007519/1.396, allocations: 154.5 kB / 0.6477 GB, free: 50.77 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (405): * Single equations (assignments): 397 * 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%) 22,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 22,(1,100.0%) 1,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007047/1.396, allocations: 211.6 kB / 0.6479 GB, free: 50.64 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008374/1.397, allocations: 357.6 kB / 0.6483 GB, free: 50.46 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00772/1.405, allocations: 4.699 MB / 0.6529 GB, free: 49.03 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.988e-05/1.405, allocations: 31.38 kB / 0.6529 GB, free: 49.03 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.185e-05/1.405, allocations: 16.02 kB / 0.6529 GB, free: 49.03 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-05/1.405, allocations: 14.95 kB / 0.6529 GB, free: 49.03 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02063/1.426, allocations: 11.65 MB / 0.6643 GB, free: 43.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.46e-05/1.426, allocations: 9.531 kB / 0.6643 GB, free: 43.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002027/1.428, allocations: 473.7 kB / 0.6648 GB, free: 43.78 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002744/1.43, allocations: 1.095 MB / 0.6658 GB, free: 43.43 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002234/1.431, allocations: 31.41 kB / 0.6659 GB, free: 43.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01759/1.448, allocations: 17.06 MB / 0.6825 GB, free: 30.63 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.682e-05/1.448, allocations: 16.78 kB / 0.6825 GB, free: 30.63 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01059/1.459, allocations: 7.95 MB / 0.6903 GB, free: 26.05 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002338/1.461, allocations: 0.7799 MB / 0.691 GB, free: 25.54 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006064/1.462, allocations: 18.66 kB / 0.6911 GB, free: 25.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001897/1.464, allocations: 96.52 kB / 0.6912 GB, free: 25.53 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003865/1.464, allocations: 192.7 kB / 0.6913 GB, free: 25.42 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001929/1.464, allocations: 93.72 kB / 0.6914 GB, free: 25.33 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.002833/1.467, allocations: 1.796 MB / 0.6932 GB, free: 23.72 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00525/1.473, allocations: 1.099 MB / 0.6943 GB, free: 22.62 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 14 (vfController3.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,smpm3.inertiaRotor.w,smpm3.stator.port_n.Phi.re,smpm3.stator.port_n.Phi.im,smpm3.stator.strayReluctance.Phi.re,smpm3.stator.strayReluctance.Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 234 * 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.0008273/1.473, allocations: 495.8 kB / 0.6947 GB, free: 22.24 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007037/1.48, allocations: 4.867 MB / 0.6995 GB, free: 17.7 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/1.48, allocations: 6.438 kB / 0.6995 GB, free: 17.7 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004512/1.485, allocations: 3.029 MB / 0.7024 GB, free: 14.89 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004078/1.489, allocations: 0.7449 MB / 0.7032 GB, free: 14.31 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02323/1.512, allocations: 10.47 MB / 0.7134 GB, free: 4.793 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005543/1.518, allocations: 4.653 MB / 0.7179 GB, free: 1.238 MB / 346.7 MB Notification: Performance of SimCode: time 1.512e-06/1.518, allocations: 0 / 0.7179 GB, free: 1.238 MB / 346.7 MB Notification: Performance of Templates: time 0.3123/1.83, allocations: 53.79 MB / 0.7705 GB, free: 52.9 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1)