Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_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.AIMC_DOL_MultiPhase,tolerance=1e-05,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,tolerance=1e-05,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_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.003781/0.003781, allocations: 178.8 kB / 7.451 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.327/1.327, allocations: 170.6 MB / 178.4 MB, free: 15.41 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.001839/0.001839, allocations: 105.2 kB / 217.7 MB, free: 8.176 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.032e-05/1.044e-05, allocations: 4 kB / 261.8 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08664/0.08668, allocations: 38.75 MB / 300.5 MB, free: 3.914 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3006/0.3873, allocations: 98.61 MB / 399.1 MB, free: 2.438 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003636/0.3877, allocations: 84.45 kB / 399.2 MB, free: 2.395 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.5781/0.9659, allocations: 173.5 MB / 0.5593 GB, free: 30.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.001219/0.9672, allocations: 199.6 kB / 0.5595 GB, free: 30.49 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: 2059 * Number of variables: 2059 Notification: Performance of Generate backend data structure: time 0.03105/0.9983, allocations: 7.503 MB / 0.5668 GB, free: 22.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.86e-05/0.9983, allocations: 23.83 kB / 0.5668 GB, free: 22.89 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008629/1.007, allocations: 1.282 MB / 0.5681 GB, free: 21.6 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01772/1.025, allocations: 5.842 MB / 0.5738 GB, free: 15.76 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007135/1.026, allocations: 259.9 kB / 0.574 GB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004228/1.03, allocations: 471.8 kB / 0.5745 GB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02353/1.053, allocations: 7.908 MB / 0.5822 GB, free: 7.129 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.19/1.243, allocations: 9.29 MB / 0.5913 GB, free: 58.58 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002816/1.244, allocations: 16.72 kB / 0.5913 GB, free: 58.58 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001962/1.246, allocations: 6.562 kB / 0.5913 GB, free: 58.58 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002797/1.246, allocations: 342.5 kB / 0.5916 GB, free: 58.57 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06073/1.307, allocations: 31.43 MB / 0.6223 GB, free: 53.17 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00405/1.311, allocations: 2.408 MB / 0.6247 GB, free: 53.15 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005645/1.317, allocations: 3.718 MB / 0.6283 GB, free: 53.1 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002018/1.317, allocations: 43 kB / 0.6283 GB, free: 53.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.204e-05/1.317, allocations: 69.89 kB / 0.6284 GB, free: 53.05 MB / 346.7 MB Notification: Performance of pre-optimization done (n=351): time 6.122e-06/1.317, allocations: 0 / 0.6284 GB, free: 53.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=415): time 0.02729/1.344, allocations: 13.82 MB / 0.6419 GB, free: 50.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/1.344, allocations: 96.92 kB / 0.642 GB, free: 50.78 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006548/1.351, allocations: 3.122 MB / 0.645 GB, free: 50.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001079/1.352, allocations: 25.7 kB / 0.6451 GB, free: 50.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001395/1.353, allocations: 2.697 MB / 0.6477 GB, free: 48.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001611/1.355, allocations: 1.334 MB / 0.649 GB, free: 47.48 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002526/1.355, allocations: 0 / 0.649 GB, free: 47.48 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002709/1.355, allocations: 486.8 kB / 0.6495 GB, free: 47.1 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002911/1.358, allocations: 2.084 MB / 0.6515 GB, free: 46.22 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003484/1.362, allocations: 3.008 MB / 0.6544 GB, free: 44.26 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004014/1.366, allocations: 2.647 MB / 0.657 GB, free: 43.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.405e-05/1.366, allocations: 10.47 kB / 0.657 GB, free: 43.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=554) (initialization): time 0.01344/1.379, allocations: 6.875 MB / 0.6637 GB, free: 40.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/1.38, allocations: 3.688 kB / 0.6638 GB, free: 40.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.032e-05/1.38, allocations: 28.09 kB / 0.6638 GB, free: 40.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003565/1.383, allocations: 1.515 MB / 0.6653 GB, free: 40.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0041/1.387, allocations: 0.8159 MB / 0.6661 GB, free: 40.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01983/1.407, allocations: 19.1 MB / 0.6847 GB, free: 27.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004334/1.412, allocations: 87.86 kB / 0.6848 GB, free: 27.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007995/1.412, allocations: 164.4 kB / 0.6849 GB, free: 26.99 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 120 * Number of states: 0 () * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (429): * Single equations (assignments): 421 * 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,100.0%) 32,(1,100.0%) 5,(1,100.0%) 1,(6,77.8%) 48,(1,100.0%) 1,(4,56.2%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009308/1.413, allocations: 202.5 kB / 0.6851 GB, free: 26.86 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0012/1.415, allocations: 435.1 kB / 0.6856 GB, free: 26.63 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01206/1.427, allocations: 6.854 MB / 0.6922 GB, free: 23.67 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.109e-05/1.427, allocations: 38.53 kB / 0.6923 GB, free: 23.67 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.053e-05/1.427, allocations: 27.06 kB / 0.6923 GB, free: 23.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.398e-05/1.427, allocations: 25.52 kB / 0.6923 GB, free: 23.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0319/1.459, allocations: 15.72 MB / 0.7077 GB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-05/1.459, allocations: 8 kB / 0.7077 GB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002346/1.461, allocations: 489.4 kB / 0.7082 GB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004287/1.466, allocations: 1.808 MB / 0.7099 GB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00065/1.466, allocations: 37.77 kB / 0.71 GB, free: 13.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2089/1.675, allocations: 26.13 MB / 0.7355 GB, free: 52.68 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.385e-05/1.675, allocations: 13.44 kB / 0.7355 GB, free: 52.68 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01533/1.691, allocations: 11.21 MB / 0.7464 GB, free: 50.46 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003407/1.694, allocations: 1.04 MB / 0.7475 GB, free: 50.37 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001449/1.695, allocations: 24.83 kB / 0.7475 GB, free: 50.37 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004048/1.7, allocations: 127.9 kB / 0.7476 GB, free: 50.37 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007516/1.7, allocations: 264.1 kB / 0.7479 GB, free: 50.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003871/1.701, allocations: 114.9 kB / 0.748 GB, free: 50.37 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.005537/1.706, allocations: 2.344 MB / 0.7503 GB, free: 50.22 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.009506/1.716, allocations: 1.343 MB / 0.7516 GB, free: 50.22 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.port_n.Phi.re,aimcM.stator.port_n.Phi.im,aimcM.stator.strayReluctance.Phi.re,aimcM.stator.strayReluctance.Phi.im,aimcM.rotorCage.strayInductor.inductor[4].i,aimcM.rotorCage.strayInductor.inductor[5].i,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.port_n.Phi.re,aimc3.stator.port_n.Phi.im,aimc3.stator.strayReluctance.Phi.re,aimc3.stator.strayReluctance.Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (261): * Single equations (assignments): 252 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(6,77.8%) 42,(6,72.2%) 45,(1,100.0%) 1,(1,100.0%) 8,(4,100.0%) 28,(1,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001536/1.717, allocations: 418.5 kB / 0.752 GB, free: 50.12 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01173/1.729, allocations: 6.359 MB / 0.7582 GB, free: 49.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-05/1.729, allocations: 0 / 0.7582 GB, free: 49.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007497/1.737, allocations: 4.664 MB / 0.7627 GB, free: 48.26 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006087/1.743, allocations: 0.8181 MB / 0.7635 GB, free: 48.24 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02959/1.772, allocations: 13.06 MB / 0.7763 GB, free: 45.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007004/1.779, allocations: 5.571 MB / 0.7817 GB, free: 44.57 MB / 346.7 MB Notification: Performance of SimCode: time 9.42e-07/1.78, allocations: 0 / 0.7817 GB, free: 44.57 MB / 346.7 MB Notification: Performance of Templates: time 0.3051/2.085, allocations: 68.53 MB / 0.8486 GB, free: 54.47 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe 2>&1)