Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_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.AIMC_DOL_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001636/0.001636, allocations: 190.2 kB / 8.137 MB, free: 2.219 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.234/1.234, allocations: 194.2 MB / 202.8 MB, free: 8.766 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.001775/0.001776, allocations: 120.8 kB / 247.7 MB, free: 6.238 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.226e-06/8.256e-06, allocations: 3.938 kB / 297.6 MB, free: 7.996 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07823/0.07825, allocations: 44.49 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2639/0.3422, allocations: 106 MB / 448.1 MB, free: 5.555 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.3425, allocations: 85.48 kB / 448.2 MB, free: 5.516 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.5567/0.8992, allocations: 180.8 MB / 0.6142 GB, free: 46.78 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006587/0.8999, allocations: 190 kB / 0.6144 GB, free: 46.75 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: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.02164/0.9215, allocations: 7.629 MB / 0.6219 GB, free: 39.45 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.9216, allocations: 8.031 kB / 0.6219 GB, free: 39.45 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01108/0.9327, allocations: 1.824 MB / 0.6236 GB, free: 37.61 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01661/0.9493, allocations: 6.98 MB / 0.6305 GB, free: 30.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004331/0.9498, allocations: 264 kB / 0.6307 GB, free: 30.41 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002645/0.9524, allocations: 483.7 kB / 0.6312 GB, free: 29.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01886/0.9713, allocations: 8.69 MB / 0.6397 GB, free: 21.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0255/0.9969, allocations: 9.746 MB / 0.6492 GB, free: 11.25 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003683/0.9973, allocations: 11.84 kB / 0.6492 GB, free: 11.24 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002317/0.9996, allocations: 12 kB / 0.6492 GB, free: 11.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000323/0.9999, allocations: 376.3 kB / 0.6496 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1919/1.192, allocations: 33.22 MB / 0.682 GB, free: 74.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003924/1.196, allocations: 2.644 MB / 0.6846 GB, free: 74.21 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00511/1.201, allocations: 3.691 MB / 0.6882 GB, free: 74.17 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01834/1.219, allocations: 10.21 MB / 0.6981 GB, free: 73.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.869e-05/1.219, allocations: 79.66 kB / 0.6982 GB, free: 73.19 MB / 394.7 MB Notification: Performance of pre-optimization done (n=397): time 6.613e-06/1.219, allocations: 2.516 kB / 0.6982 GB, free: 73.19 MB / 394.7 MB Notification: Performance of matching and sorting (n=403): time 0.02265/1.242, allocations: 11.54 MB / 0.7095 GB, free: 71.28 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/1.242, allocations: 93.27 kB / 0.7096 GB, free: 71.21 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005071/1.247, allocations: 3.193 MB / 0.7127 GB, free: 70.97 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006492/1.248, allocations: 28.58 kB / 0.7127 GB, free: 70.94 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001283/1.249, allocations: 2.792 MB / 0.7155 GB, free: 69.46 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001338/1.251, allocations: 1.283 MB / 0.7167 GB, free: 68.61 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002799/1.251, allocations: 0 / 0.7167 GB, free: 68.61 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002491/1.251, allocations: 492.8 kB / 0.7172 GB, free: 68.29 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002793/1.254, allocations: 2.021 MB / 0.7191 GB, free: 67.85 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003073/1.257, allocations: 3.062 MB / 0.7221 GB, free: 65.75 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004067/1.261, allocations: 2.669 MB / 0.7247 GB, free: 64.73 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.752e-05/1.261, allocations: 11.25 kB / 0.7248 GB, free: 64.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=572) (initialization): time 0.01155/1.273, allocations: 6.339 MB / 0.7309 GB, free: 62.41 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/1.273, allocations: 3.594 kB / 0.7309 GB, free: 62.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.748e-05/1.273, allocations: 33.62 kB / 0.731 GB, free: 62.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001974/1.275, allocations: 0.8027 MB / 0.7318 GB, free: 62.14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004151/1.279, allocations: 0.9474 MB / 0.7327 GB, free: 62.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01139/1.29, allocations: 13.95 MB / 0.7463 GB, free: 51.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00433/1.295, allocations: 106.7 kB / 0.7464 GB, free: 51.03 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007303/1.295, allocations: 186.1 kB / 0.7466 GB, free: 51 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * 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 (509): * Single equations (assignments): 500 * 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: 7 * 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: 7 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 2,(1,100.0%) 2,(4,56.2%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007684/1.296, allocations: 227.1 kB / 0.7468 GB, free: 50.85 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008372/1.297, allocations: 434.6 kB / 0.7472 GB, free: 50.63 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01202/1.309, allocations: 6.112 MB / 0.7532 GB, free: 48.22 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.39e-05/1.309, allocations: 37.53 kB / 0.7532 GB, free: 48.22 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-05/1.309, allocations: 20.12 kB / 0.7532 GB, free: 48.22 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-05/1.309, allocations: 20.67 kB / 0.7533 GB, free: 48.22 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02303/1.332, allocations: 13.39 MB / 0.7663 GB, free: 42.24 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-05/1.332, allocations: 7.938 kB / 0.7663 GB, free: 42.24 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002493/1.335, allocations: 0.4962 MB / 0.7668 GB, free: 42.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003594/1.338, allocations: 1.365 MB / 0.7682 GB, free: 41.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003992/1.339, allocations: 45.88 kB / 0.7682 GB, free: 41.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02143/1.36, allocations: 22.46 MB / 0.7901 GB, free: 23.24 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.205e-06/1.36, allocations: 7.656 kB / 0.7902 GB, free: 23.23 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01361/1.374, allocations: 9.39 MB / 0.7993 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003302/1.377, allocations: 1.003 MB / 0.8003 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001433/1.379, allocations: 27.28 kB / 0.8003 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003006/1.382, allocations: 139.6 kB / 0.8005 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005299/1.382, allocations: 255.5 kB / 0.8007 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002666/1.383, allocations: 111.1 kB / 0.8008 GB, free: 13.38 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.003751/1.386, allocations: 2.386 MB / 0.8031 GB, free: 11.27 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006274/1.393, allocations: 1.337 MB / 0.8044 GB, free: 9.945 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].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 (275): * Single equations (assignments): 266 * 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 {(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(6,72.2%) 46,(3,100.0%) 23,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009827/1.394, allocations: 425.9 kB / 0.8049 GB, free: 9.629 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007865/1.402, allocations: 5.909 MB / 0.8106 GB, free: 4.172 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/1.402, allocations: 0 / 0.8106 GB, free: 4.172 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005701/1.407, allocations: 3.977 MB / 0.8145 GB, free: 0.5352 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005443/1.413, allocations: 0.8486 MB / 0.8153 GB, free: 0 / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1828/1.596, allocations: 12.41 MB / 0.8275 GB, free: 68.58 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007932/1.604, allocations: 5.528 MB / 0.8329 GB, free: 67.72 MB / 394.7 MB Notification: Performance of SimCode: time 8.82e-07/1.604, allocations: 0 / 0.8329 GB, free: 67.72 MB / 394.7 MB Notification: Performance of Templates: time 0.1205/1.724, allocations: 68.3 MB / 0.8996 GB, free: 60.23 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe 2>&1)