Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_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.2+maint.om/package.mo): time 0.001533/0.001533, allocations: 189.8 kB / 8.136 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.193/1.193, allocations: 194.2 MB / 202.8 MB, free: 8.824 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001841/0.001841, allocations: 116.7 kB / 247.7 MB, free: 6.199 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.643e-06/6.672e-06, allocations: 0 / 297.6 MB, free: 8.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07537/0.07539, allocations: 44.49 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2383/0.3137, allocations: 109.4 MB / 451.4 MB, free: 2.391 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/0.314, allocations: 85.58 kB / 451.5 MB, free: 2.348 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.6262/0.9401, allocations: 218.4 MB / 0.6542 GB, free: 7.57 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.001021/0.9412, allocations: 250.3 kB / 0.6544 GB, free: 7.328 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.2855/1.227, allocations: 9.574 MB / 0.6638 GB, free: 49.48 MB / 394.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/1.227, allocations: 11.22 kB / 0.6638 GB, free: 49.48 MB / 394.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01375/1.24, allocations: 2.127 MB / 0.6659 GB, free: 48.88 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02334/1.264, allocations: 8.957 MB / 0.6746 GB, free: 48.22 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006696/1.265, allocations: 327.9 kB / 0.6749 GB, free: 48.22 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003957/1.269, allocations: 0.5923 MB / 0.6755 GB, free: 48.21 MB / 394.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02716/1.296, allocations: 11.03 MB / 0.6863 GB, free: 48.16 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03374/1.33, allocations: 12.49 MB / 0.6985 GB, free: 47.07 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003716/1.33, allocations: 13 kB / 0.6985 GB, free: 47.07 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00245/1.332, allocations: 9.375 kB / 0.6985 GB, free: 47.07 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003608/1.333, allocations: 462.2 kB / 0.699 GB, free: 47.05 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08155/1.414, allocations: 42.52 MB / 0.7405 GB, free: 35.35 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00569/1.42, allocations: 3.428 MB / 0.7438 GB, free: 33.99 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007436/1.428, allocations: 4.993 MB / 0.7487 GB, free: 32.25 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02643/1.454, allocations: 12.88 MB / 0.7613 GB, free: 26.12 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001445/1.454, allocations: 98.3 kB / 0.7614 GB, free: 26.04 MB / 394.8 MB Notification: Performance of pre-optimization done (n=507): time 9.207e-06/1.454, allocations: 0 / 0.7614 GB, free: 26.04 MB / 394.8 MB Notification: Performance of matching and sorting (n=513): time 0.03278/1.487, allocations: 15.23 MB / 0.7763 GB, free: 19.1 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/1.487, allocations: 103.1 kB / 0.7764 GB, free: 19.03 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007332/1.494, allocations: 3.849 MB / 0.7801 GB, free: 17.57 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00111/1.496, allocations: 29.67 kB / 0.7801 GB, free: 17.54 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001626/1.497, allocations: 3.435 MB / 0.7835 GB, free: 15.12 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001902/1.499, allocations: 1.638 MB / 0.7851 GB, free: 13.83 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003739/1.5, allocations: 0 / 0.7851 GB, free: 13.83 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0003464/1.5, allocations: 0.5175 MB / 0.7856 GB, free: 13.43 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003652/1.504, allocations: 2.587 MB / 0.7881 GB, free: 12.38 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004307/1.508, allocations: 3.751 MB / 0.7918 GB, free: 9.969 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00539/1.513, allocations: 3.314 MB / 0.795 GB, free: 8.676 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.129e-05/1.513, allocations: 7.531 kB / 0.795 GB, free: 8.676 MB / 394.8 MB Notification: Performance of matching and sorting (n=702) (initialization): time 0.01514/1.528, allocations: 8.363 MB / 0.8032 GB, free: 1.418 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/1.529, allocations: 6.672 kB / 0.8032 GB, free: 1.414 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.321e-05/1.529, allocations: 35.47 kB / 0.8032 GB, free: 1.383 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003573/1.532, allocations: 1.481 MB / 0.8047 GB, free: 164 kB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009748/1.542, allocations: 1.471 MB / 0.8061 GB, free: 0 / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1772/1.719, allocations: 25.26 MB / 0.8308 GB, free: 31.8 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004933/1.724, allocations: 131.7 kB / 0.8309 GB, free: 31.8 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009118/1.725, allocations: 216.3 kB / 0.8311 GB, free: 31.8 MB / 394.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * Number of states: 0 () * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,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 (614): * Single equations (assignments): 598 * 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: 14 * 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: 14 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(4,68.8%) 22,(2,100.0%) 6,(2,100.0%) 6,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009831/1.726, allocations: 240 kB / 0.8314 GB, free: 31.7 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001218/1.727, allocations: 0.5507 MB / 0.8319 GB, free: 31.7 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01399/1.741, allocations: 8.321 MB / 0.84 GB, free: 30.95 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.233e-05/1.741, allocations: 50.88 kB / 0.8401 GB, free: 30.95 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.657e-05/1.741, allocations: 27.59 kB / 0.8401 GB, free: 30.95 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.426e-05/1.742, allocations: 22.31 kB / 0.8401 GB, free: 30.95 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03218/1.774, allocations: 17.28 MB / 0.857 GB, free: 29.21 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.795e-05/1.774, allocations: 3.969 kB / 0.857 GB, free: 29.21 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003096/1.777, allocations: 0.5765 MB / 0.8576 GB, free: 29.21 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005709/1.783, allocations: 2.243 MB / 0.8597 GB, free: 29.09 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007353/1.783, allocations: 38 kB / 0.8598 GB, free: 29.09 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0333/1.817, allocations: 32.43 MB / 0.8914 GB, free: 29.18 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/1.817, allocations: 9.672 kB / 0.8915 GB, free: 29.18 MB / 410.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02034/1.837, allocations: 12.7 MB / 0.9039 GB, free: 27.42 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004186/1.841, allocations: 1.237 MB / 0.9051 GB, free: 26.71 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00175/1.843, allocations: 18.92 kB / 0.9051 GB, free: 26.71 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004086/1.847, allocations: 188.2 kB / 0.9053 GB, free: 26.71 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008566/1.848, allocations: 331.5 kB / 0.9056 GB, free: 26.65 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003956/1.848, allocations: 136.8 kB / 0.9057 GB, free: 26.62 MB / 410.8 MB Notification: Performance of sort global known variables: time 0.004577/1.853, allocations: 2.874 MB / 0.9085 GB, free: 25.5 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.007969/1.861, allocations: 1.707 MB / 0.9102 GB, free: 25.48 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,aims3.rotor.zeroInductor.i0,loadInertiaM.w,loadInertia3.w,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,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 (329): * Single equations (assignments): 316 * 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: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 5,(6,72.2%) 46,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(11,49.6%) 56,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001289/1.862, allocations: 484.4 kB / 0.9106 GB, free: 25.35 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.01209/1.874, allocations: 8.101 MB / 0.9186 GB, free: 21.41 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/1.875, allocations: 4.531 kB / 0.9186 GB, free: 21.41 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0102/1.885, allocations: 5.471 MB / 0.9239 GB, free: 18.64 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007406/1.892, allocations: 1.121 MB / 0.925 GB, free: 18.38 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03522/1.927, allocations: 15.73 MB / 0.9404 GB, free: 12.53 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01017/1.938, allocations: 6.865 MB / 0.9471 GB, free: 9.902 MB / 410.8 MB Notification: Performance of SimCode: time 1.212e-06/1.938, allocations: 6.344 kB / 0.9471 GB, free: 9.898 MB / 410.8 MB Notification: Performance of Templates: time 0.2989/2.237, allocations: 90.4 MB / 1.035 GB, free: 51.19 MB / 410.8 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe 2>&1)