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.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,tolerance=1e-05,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,tolerance=1e-05,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") [: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.003219/0.003219, allocations: 180.6 kB / 7.454 MB, free: 2.504 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.292/1.292, allocations: 170.6 MB / 178.4 MB, free: 15.46 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.001863/0.001862, allocations: 116.8 kB / 217.7 MB, free: 8.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.003e-06/7.024e-06, allocations: 0 / 261.8 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08401/0.08403, allocations: 38.76 MB / 300.5 MB, free: 3.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3153/0.3994, allocations: 108.9 MB / 409.4 MB, free: 8.48 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003382/0.3998, allocations: 81.14 kB / 409.5 MB, free: 8.441 MB / 298.7 MB Notification: Performance of FrontEnd: time 0.4485/0.8484, allocations: 111.6 MB / 0.5089 GB, free: 69.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.00064/0.8491, allocations: 132.3 kB / 0.509 GB, free: 69.91 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: 1305 * Number of variables: 1305 Notification: Performance of Generate backend data structure: time 0.01713/0.8662, allocations: 4.838 MB / 0.5137 GB, free: 67.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.8663, allocations: 15.41 kB / 0.5137 GB, free: 67.61 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005274/0.8716, allocations: 0.7573 MB / 0.5145 GB, free: 67.3 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.011/0.8826, allocations: 3.643 MB / 0.518 GB, free: 65.33 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005119/0.8832, allocations: 161.9 kB / 0.5182 GB, free: 65.33 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002554/0.8858, allocations: 306.9 kB / 0.5185 GB, free: 65.31 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01459/0.9004, allocations: 4.878 MB / 0.5232 GB, free: 63.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01947/0.9199, allocations: 5.829 MB / 0.5289 GB, free: 59.55 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000341/0.9203, allocations: 23.64 kB / 0.529 GB, free: 59.53 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001743/0.922, allocations: 7.844 kB / 0.529 GB, free: 59.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002482/0.9223, allocations: 213.6 kB / 0.5292 GB, free: 59.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04197/0.9643, allocations: 19.63 MB / 0.5483 GB, free: 41.4 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002919/0.9673, allocations: 1.596 MB / 0.5499 GB, free: 39.8 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003649/0.971, allocations: 2.21 MB / 0.5521 GB, free: 37.6 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005317/0.9716, allocations: 149.7 kB / 0.5522 GB, free: 37.44 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.369e-05/0.9717, allocations: 56.56 kB / 0.5523 GB, free: 37.37 MB / 346.7 MB Notification: Performance of pre-optimization done (n=235): time 5.831e-06/0.9717, allocations: 0 / 0.5523 GB, free: 37.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=278): time 0.01953/0.9912, allocations: 9.589 MB / 0.5616 GB, free: 27.67 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.314e-05/0.9913, allocations: 77.59 kB / 0.5617 GB, free: 27.58 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003154/0.9945, allocations: 2.064 MB / 0.5637 GB, free: 25.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003573/0.9948, allocations: 29.7 kB / 0.5637 GB, free: 25.47 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006831/0.9955, allocations: 1.779 MB / 0.5655 GB, free: 23.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006458/0.9962, allocations: 0.9005 MB / 0.5664 GB, free: 22.75 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001428/0.9963, allocations: 0 / 0.5664 GB, free: 22.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.9965, allocations: 432.3 kB / 0.5668 GB, free: 22.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001843/0.9984, allocations: 1.447 MB / 0.5682 GB, free: 20.87 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001989/1, allocations: 2.139 MB / 0.5703 GB, free: 18.44 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002194/1.003, allocations: 1.825 MB / 0.572 GB, free: 16.6 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.305e-05/1.003, allocations: 4 kB / 0.5721 GB, free: 16.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.006872/1.009, allocations: 4.783 MB / 0.5767 GB, free: 11.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/1.01, allocations: 4 kB / 0.5767 GB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.212e-05/1.01, allocations: 24.03 kB / 0.5768 GB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002144/1.012, allocations: 0.9485 MB / 0.5777 GB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002963/1.015, allocations: 0.667 MB / 0.5783 GB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1691/1.184, allocations: 11.89 MB / 0.5899 GB, free: 93.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002731/1.187, allocations: 73.45 kB / 0.59 GB, free: 93.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003217/1.187, allocations: 124 kB / 0.5901 GB, free: 93.07 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (333): * Single equations (assignments): 325 * 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: 5 * 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: 5 {(2,100.0%) 12,(1,100.0%) 1,(4,100.0%) 29,(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005298/1.187, allocations: 179.7 kB / 0.5903 GB, free: 92.96 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004932/1.188, allocations: 303.2 kB / 0.5906 GB, free: 92.96 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007012/1.195, allocations: 4.637 MB / 0.5951 GB, free: 92.44 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.567e-05/1.195, allocations: 28.19 kB / 0.5951 GB, free: 92.44 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.593e-05/1.195, allocations: 14.53 kB / 0.5952 GB, free: 92.44 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.781e-05/1.195, allocations: 16.42 kB / 0.5952 GB, free: 92.44 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01879/1.214, allocations: 9.902 MB / 0.6048 GB, free: 91.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.681e-05/1.214, allocations: 6.906 kB / 0.6049 GB, free: 91.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001972/1.216, allocations: 431.7 kB / 0.6053 GB, free: 91.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002783/1.219, allocations: 1.103 MB / 0.6063 GB, free: 91.39 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002673/1.219, allocations: 26.83 kB / 0.6064 GB, free: 91.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01667/1.236, allocations: 16.99 MB / 0.623 GB, free: 81.62 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.291e-05/1.236, allocations: 10.44 kB / 0.623 GB, free: 81.62 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01092/1.247, allocations: 7.383 MB / 0.6302 GB, free: 79.37 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002305/1.249, allocations: 0.7175 MB / 0.6309 GB, free: 78.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001549/1.251, allocations: 23.89 kB / 0.6309 GB, free: 78.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002768/1.253, allocations: 83.03 kB / 0.631 GB, free: 78.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003977/1.254, allocations: 155.9 kB / 0.6311 GB, free: 78.95 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002322/1.254, allocations: 84 kB / 0.6312 GB, free: 78.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.002973/1.257, allocations: 1.545 MB / 0.6327 GB, free: 78.3 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005812/1.263, allocations: 0.8989 MB / 0.6336 GB, free: 78.29 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.port_n.Phi.re,aimcM.stator.port_n.Phi.im,aimcM.stator.zeroInductor.i0,aimcM.stator.strayReluctance.Phi.re,aimcM.stator.strayReluctance.Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (208): * Single equations (assignments): 199 * 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: 8 * 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: 8 {(4,100.0%) 28,(2,100.0%) 12,(1,100.0%) 7,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001594/1.265, allocations: 375.8 kB / 0.634 GB, free: 78.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007721/1.272, allocations: 4.548 MB / 0.6384 GB, free: 76.03 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.705e-05/1.272, allocations: 3.719 kB / 0.6384 GB, free: 76.03 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005093/1.277, allocations: 3.107 MB / 0.6414 GB, free: 74.38 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004901/1.282, allocations: 0.6129 MB / 0.642 GB, free: 74.23 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01928/1.302, allocations: 8.504 MB / 0.6503 GB, free: 70.84 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005587/1.307, allocations: 3.725 MB / 0.654 GB, free: 69.49 MB / 346.7 MB Notification: Performance of SimCode: time 1.212e-06/1.307, allocations: 0 / 0.654 GB, free: 69.49 MB / 346.7 MB Notification: Performance of Templates: time 0.0882/1.396, allocations: 46.34 MB / 0.6992 GB, free: 36.15 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe 2>&1)