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.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001956/0.001956, allocations: 195.8 kB / 8.138 MB, free: 2.078 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.137/1.137, allocations: 194.2 MB / 202.8 MB, free: 8.742 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.001798/0.001798, allocations: 113.5 kB / 247.7 MB, free: 6.383 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.053e-05/1.064e-05, allocations: 0 / 297.6 MB, free: 7.996 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08737/0.08741, allocations: 44.5 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2588/0.3463, allocations: 123.5 MB / 465.6 MB, free: 4.547 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002067/0.3465, allocations: 88.52 kB / 465.6 MB, free: 4.504 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.5122/0.8588, allocations: 148.7 MB / 0.6 GB, free: 62.13 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0008574/0.8597, allocations: 190.4 kB / 0.6002 GB, free: 62.09 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02137/0.8811, allocations: 6.548 MB / 0.6065 GB, free: 56.7 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.8811, allocations: 8.031 kB / 0.6066 GB, free: 56.69 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008269/0.8894, allocations: 1.252 MB / 0.6078 GB, free: 55.43 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01806/0.9075, allocations: 6.255 MB / 0.6139 GB, free: 49.2 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004212/0.908, allocations: 224 kB / 0.6141 GB, free: 48.98 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002674/0.9107, allocations: 403.8 kB / 0.6145 GB, free: 48.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01787/0.9286, allocations: 7.173 MB / 0.6215 GB, free: 41.41 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02316/0.9518, allocations: 8.318 MB / 0.6296 GB, free: 32.8 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003876/0.9522, allocations: 19.83 kB / 0.6296 GB, free: 32.78 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002063/0.9543, allocations: 4 kB / 0.6296 GB, free: 32.77 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002544/0.9545, allocations: 297.4 kB / 0.6299 GB, free: 32.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05249/1.007, allocations: 28.36 MB / 0.6576 GB, free: 3.691 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003498/1.011, allocations: 2.45 MB / 0.66 GB, free: 1.242 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1382/1.149, allocations: 3.332 MB / 0.6633 GB, free: 88.06 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02514/1.174, allocations: 6.938 MB / 0.67 GB, free: 87.37 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.957e-05/1.174, allocations: 73.61 kB / 0.6701 GB, free: 87.33 MB / 394.7 MB Notification: Performance of pre-optimization done (n=348): time 1.385e-05/1.174, allocations: 0 / 0.6701 GB, free: 87.33 MB / 394.7 MB Notification: Performance of matching and sorting (n=367): time 0.0409/1.215, allocations: 11.78 MB / 0.6816 GB, free: 85.86 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/1.215, allocations: 90.7 kB / 0.6817 GB, free: 85.79 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01063/1.226, allocations: 2.825 MB / 0.6845 GB, free: 85.55 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001059/1.227, allocations: 29.05 kB / 0.6845 GB, free: 85.52 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002298/1.229, allocations: 2.368 MB / 0.6868 GB, free: 84.33 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002256/1.232, allocations: 1.178 MB / 0.6879 GB, free: 83.54 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009439/1.233, allocations: 0 / 0.6879 GB, free: 83.54 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004753/1.233, allocations: 477.6 kB / 0.6884 GB, free: 83.23 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005281/1.238, allocations: 1.946 MB / 0.6903 GB, free: 83.21 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006441/1.245, allocations: 2.853 MB / 0.6931 GB, free: 82.21 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007392/1.252, allocations: 2.454 MB / 0.6955 GB, free: 82.16 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.638e-05/1.252, allocations: 12.91 kB / 0.6955 GB, free: 82.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=521) (initialization): time 0.02099/1.273, allocations: 6.372 MB / 0.7017 GB, free: 81.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/1.273, allocations: 6.281 kB / 0.7017 GB, free: 81.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001005/1.274, allocations: 27.47 kB / 0.7017 GB, free: 81.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004784/1.278, allocations: 1.255 MB / 0.703 GB, free: 81.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006778/1.285, allocations: 0.8712 MB / 0.7038 GB, free: 81.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02368/1.309, allocations: 19.48 MB / 0.7229 GB, free: 67.99 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006504/1.315, allocations: 109.6 kB / 0.723 GB, free: 67.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001372/1.317, allocations: 158.7 kB / 0.7231 GB, free: 67.98 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * 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 (458): * Single equations (assignments): 444 * 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%) 8,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(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.002112/1.319, allocations: 214.6 kB / 0.7233 GB, free: 67.86 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002106/1.321, allocations: 419.3 kB / 0.7237 GB, free: 67.64 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01961/1.341, allocations: 6.219 MB / 0.7298 GB, free: 65.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.241e-05/1.341, allocations: 42 kB / 0.7298 GB, free: 65.23 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.25e-05/1.341, allocations: 15.44 kB / 0.7298 GB, free: 65.23 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001082/1.341, allocations: 20.77 kB / 0.7299 GB, free: 65.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02541/1.367, allocations: 12.31 MB / 0.7419 GB, free: 60.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.52e-05/1.367, allocations: 3.5 kB / 0.7419 GB, free: 60.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002897/1.37, allocations: 0.5192 MB / 0.7424 GB, free: 60 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004128/1.374, allocations: 1.597 MB / 0.744 GB, free: 59.46 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005468/1.374, allocations: 30.55 kB / 0.744 GB, free: 59.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02239/1.397, allocations: 28.36 MB / 0.7717 GB, free: 36.06 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/1.397, allocations: 3.812 kB / 0.7717 GB, free: 36.06 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01489/1.412, allocations: 9.454 MB / 0.7809 GB, free: 31.7 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004027/1.416, allocations: 0.9232 MB / 0.7818 GB, free: 31.15 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002019/1.418, allocations: 16.69 kB / 0.7818 GB, free: 31.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004772/1.422, allocations: 138.2 kB / 0.782 GB, free: 31.14 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009849/1.424, allocations: 221 kB / 0.7822 GB, free: 31.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006634/1.424, allocations: 98.48 kB / 0.7823 GB, free: 31.09 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.00602/1.43, allocations: 2.109 MB / 0.7843 GB, free: 30.27 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007202/1.437, allocations: 1.223 MB / 0.7855 GB, free: 29.6 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,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 (274): * Single equations (assignments): 257 * 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%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001239/1.439, allocations: 461.8 kB / 0.786 GB, free: 29.29 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00914/1.448, allocations: 6.285 MB / 0.7921 GB, free: 23.44 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/1.448, allocations: 4 kB / 0.7921 GB, free: 23.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006415/1.454, allocations: 4.531 MB / 0.7965 GB, free: 19.17 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005845/1.46, allocations: 0.909 MB / 0.7974 GB, free: 18.49 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0277/1.488, allocations: 11.22 MB / 0.8084 GB, free: 8.57 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008096/1.496, allocations: 4.848 MB / 0.8131 GB, free: 4.883 MB / 394.7 MB Notification: Performance of SimCode: time 1.552e-06/1.496, allocations: 0 / 0.8131 GB, free: 4.883 MB / 394.7 MB Notification: Performance of Templates: time 0.2744/1.771, allocations: 66.35 MB / 0.8779 GB, free: 70.09 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1)