Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.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.AIMS_Start,tolerance=1e-05,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-05,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") [: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.003366/0.003366, allocations: 182.2 kB / 7.455 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.229/1.229, allocations: 170.6 MB / 178.4 MB, free: 15.45 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.001702/0.001702, allocations: 111.8 kB / 217.7 MB, free: 8.223 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.833e-06/6.873e-06, allocations: 0 / 261.8 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07768/0.07771, allocations: 38.77 MB / 300.5 MB, free: 3.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3184/0.3962, allocations: 116.2 MB / 416.8 MB, free: 1.195 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/0.3965, allocations: 80.73 kB / 416.8 MB, free: 1.156 MB / 298.7 MB Notification: Performance of FrontEnd: time 0.561/0.9575, allocations: 143.8 MB / 0.5475 GB, free: 44.35 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000943/0.9585, allocations: 187.5 kB / 0.5477 GB, free: 44.17 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: 1699 * Number of variables: 1699 Notification: Performance of Generate backend data structure: time 0.02355/0.9821, allocations: 6.378 MB / 0.5539 GB, free: 37.73 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.9821, allocations: 11.97 kB / 0.5539 GB, free: 37.71 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006414/0.9885, allocations: 0.9904 MB / 0.5549 GB, free: 36.71 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01555/1.004, allocations: 5.261 MB / 0.56 GB, free: 31.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004467/1.005, allocations: 215.9 kB / 0.5602 GB, free: 31.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002842/1.007, allocations: 391.8 kB / 0.5606 GB, free: 30.86 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0168/1.024, allocations: 6.637 MB / 0.5671 GB, free: 24.22 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02203/1.046, allocations: 7.899 MB / 0.5748 GB, free: 16.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002462/1.047, allocations: 15.78 kB / 0.5748 GB, free: 16 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001379/1.048, allocations: 12 kB / 0.5748 GB, free: 15.99 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002022/1.048, allocations: 272.8 kB / 0.5751 GB, free: 15.72 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1973/1.246, allocations: 26.85 MB / 0.6013 GB, free: 62.54 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003301/1.249, allocations: 2.223 MB / 0.6035 GB, free: 62.52 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004377/1.253, allocations: 3.094 MB / 0.6065 GB, free: 62.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003872/1.254, allocations: 159.8 kB / 0.6067 GB, free: 62.39 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.675e-05/1.254, allocations: 72.48 kB / 0.6067 GB, free: 62.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=322): time 5.33e-06/1.254, allocations: 0 / 0.6067 GB, free: 62.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=341): time 0.0205/1.274, allocations: 11.06 MB / 0.6175 GB, free: 60.79 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.203e-05/1.274, allocations: 90.22 kB / 0.6176 GB, free: 60.72 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005602/1.28, allocations: 2.78 MB / 0.6203 GB, free: 60.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006612/1.281, allocations: 28.92 kB / 0.6204 GB, free: 60.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001323/1.282, allocations: 2.277 MB / 0.6226 GB, free: 59.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001182/1.283, allocations: 1.099 MB / 0.6237 GB, free: 58.65 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002051/1.283, allocations: 0 / 0.6237 GB, free: 58.65 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002144/1.284, allocations: 459.7 kB / 0.6241 GB, free: 58.34 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002379/1.286, allocations: 1.818 MB / 0.6259 GB, free: 58.33 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002817/1.289, allocations: 2.665 MB / 0.6285 GB, free: 57.41 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002929/1.292, allocations: 2.242 MB / 0.6307 GB, free: 57.36 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-05/1.292, allocations: 6.219 kB / 0.6307 GB, free: 57.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.009226/1.301, allocations: 6.005 MB / 0.6365 GB, free: 56.72 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/1.301, allocations: 6.344 kB / 0.6365 GB, free: 56.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-05/1.301, allocations: 22.34 kB / 0.6366 GB, free: 56.72 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002783/1.304, allocations: 1.26 MB / 0.6378 GB, free: 56.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003695/1.308, allocations: 0.8183 MB / 0.6386 GB, free: 56.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01636/1.324, allocations: 19.99 MB / 0.6581 GB, free: 42.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00452/1.329, allocations: 98.94 kB / 0.6582 GB, free: 42.95 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000771/1.329, allocations: 146.1 kB / 0.6584 GB, free: 42.95 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 113 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (417): * Single equations (assignments): 403 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 11 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 5,(2,100.0%) 5,(2,100.0%) 5,(1,100.0%) 1,(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.00124/1.331, allocations: 204.9 kB / 0.6585 GB, free: 42.83 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001294/1.332, allocations: 410.5 kB / 0.6589 GB, free: 42.62 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009203/1.341, allocations: 5.862 MB / 0.6647 GB, free: 40.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.437e-05/1.341, allocations: 34 kB / 0.6647 GB, free: 40.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.408e-05/1.341, allocations: 21.16 kB / 0.6647 GB, free: 40.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-05/1.341, allocations: 17.45 kB / 0.6647 GB, free: 40.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0203/1.362, allocations: 11.86 MB / 0.6763 GB, free: 35.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.631e-05/1.362, allocations: 3.875 kB / 0.6763 GB, free: 35.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002332/1.364, allocations: 483.5 kB / 0.6768 GB, free: 35.28 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004162/1.368, allocations: 1.581 MB / 0.6783 GB, free: 34.75 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003565/1.369, allocations: 31.94 kB / 0.6784 GB, free: 34.74 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.021/1.39, allocations: 28.37 MB / 0.7061 GB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/1.39, allocations: 3.812 kB / 0.7061 GB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01343/1.403, allocations: 9.165 MB / 0.715 GB, free: 4.254 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003267/1.406, allocations: 0.883 MB / 0.7159 GB, free: 3.438 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001308/1.408, allocations: 19.42 kB / 0.7159 GB, free: 3.422 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002513/1.41, allocations: 132.6 kB / 0.716 GB, free: 3.336 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004281/1.411, allocations: 201.2 kB / 0.7162 GB, free: 3.215 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002301/1.411, allocations: 90.98 kB / 0.7163 GB, free: 3.133 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.003592/1.415, allocations: 2.086 MB / 0.7183 GB, free: 1.301 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006611/1.421, allocations: 1.17 MB / 0.7195 GB, free: 144 kB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 16 (aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (248): * Single equations (assignments): 231 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1847/1.606, allocations: 459.9 kB / 0.7199 GB, free: 63.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009513/1.615, allocations: 5.956 MB / 0.7257 GB, free: 61.8 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/1.615, allocations: 7.531 kB / 0.7257 GB, free: 61.8 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006881/1.622, allocations: 4.445 MB / 0.7301 GB, free: 60.07 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006335/1.629, allocations: 0.9043 MB / 0.731 GB, free: 60.05 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02795/1.657, allocations: 10.81 MB / 0.7415 GB, free: 57.91 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006946/1.664, allocations: 4.714 MB / 0.7461 GB, free: 57.01 MB / 346.7 MB Notification: Performance of SimCode: time 1.152e-06/1.664, allocations: 0 / 0.7461 GB, free: 57.01 MB / 346.7 MB Notification: Performance of Templates: time 0.1181/1.782, allocations: 62.52 MB / 0.8072 GB, free: 41.77 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1)