Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_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.SMEE_Generator_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_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.001121/0.001121, allocations: 191.6 kB / 8.135 MB, free: 2.199 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.09/1.09, allocations: 194.2 MB / 202.8 MB, free: 8.746 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.001771/0.001771, allocations: 122.2 kB / 247.7 MB, free: 6.297 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.903e-06/6.933e-06, allocations: 0 / 297.6 MB, free: 7.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0707/0.07072, allocations: 44.49 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2243/0.295, allocations: 116.1 MB / 458.2 MB, free: 11.69 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/0.2953, allocations: 92.44 kB / 458.3 MB, free: 11.64 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.5448/0.8401, allocations: 190.5 MB / 0.6336 GB, free: 28 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006348/0.8408, allocations: 211.7 kB / 0.6338 GB, free: 27.8 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: 2286 * Number of variables: 2286 Notification: Performance of Generate backend data structure: time 0.0208/0.8616, allocations: 7.94 MB / 0.6415 GB, free: 19.78 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.8616, allocations: 11.97 kB / 0.6416 GB, free: 19.77 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01143/0.8731, allocations: 1.921 MB / 0.6434 GB, free: 17.83 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01723/0.8903, allocations: 7.085 MB / 0.6503 GB, free: 10.78 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003899/0.8907, allocations: 284 kB / 0.6506 GB, free: 10.5 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002461/0.8932, allocations: 0.4959 MB / 0.6511 GB, free: 10.01 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01769/0.9109, allocations: 8.337 MB / 0.6592 GB, free: 1.664 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1373/1.048, allocations: 9.751 MB / 0.6688 GB, free: 63.89 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001901/1.049, allocations: 11.09 kB / 0.6688 GB, free: 63.89 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007868/1.049, allocations: 7.25 kB / 0.6688 GB, free: 63.89 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002325/1.05, allocations: 372.9 kB / 0.6691 GB, free: 63.88 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05647/1.106, allocations: 34.55 MB / 0.7029 GB, free: 57.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003514/1.11, allocations: 2.465 MB / 0.7053 GB, free: 57.52 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004634/1.114, allocations: 3.431 MB / 0.7086 GB, free: 57.47 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01526/1.13, allocations: 10.05 MB / 0.7185 GB, free: 55.68 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.937e-05/1.13, allocations: 73.3 kB / 0.7185 GB, free: 55.63 MB / 394.7 MB Notification: Performance of pre-optimization done (n=366): time 6.522e-06/1.13, allocations: 3.781 kB / 0.7185 GB, free: 55.63 MB / 394.7 MB Notification: Performance of matching and sorting (n=420): time 0.02497/1.155, allocations: 12.77 MB / 0.731 GB, free: 50.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/1.155, allocations: 95.38 kB / 0.7311 GB, free: 50.73 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006582/1.161, allocations: 3.187 MB / 0.7342 GB, free: 49.47 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007131/1.162, allocations: 25.7 kB / 0.7342 GB, free: 49.44 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001516/1.164, allocations: 3.122 MB / 0.7373 GB, free: 47.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001458/1.165, allocations: 1.36 MB / 0.7386 GB, free: 46.12 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005341/1.166, allocations: 0 / 0.7386 GB, free: 46.12 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003622/1.166, allocations: 0.5005 MB / 0.7391 GB, free: 45.72 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003127/1.169, allocations: 1.958 MB / 0.741 GB, free: 44.89 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003442/1.173, allocations: 3.391 MB / 0.7443 GB, free: 42.26 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004235/1.177, allocations: 2.682 MB / 0.7469 GB, free: 41.22 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.403e-05/1.177, allocations: 13.28 kB / 0.7469 GB, free: 41.22 MB / 394.7 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.01058/1.187, allocations: 6.45 MB / 0.7532 GB, free: 38.9 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/1.187, allocations: 3.938 kB / 0.7532 GB, free: 38.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.066e-05/1.187, allocations: 47.03 kB / 0.7533 GB, free: 38.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001923/1.189, allocations: 0.7157 MB / 0.754 GB, free: 38.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004656/1.194, allocations: 1.171 MB / 0.7551 GB, free: 38.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009117/1.203, allocations: 9.432 MB / 0.7643 GB, free: 31.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004243/1.207, allocations: 159.8 kB / 0.7645 GB, free: 31.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007362/1.208, allocations: 221.2 kB / 0.7647 GB, free: 31.34 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (591): * Single equations (assignments): 583 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008334/1.209, allocations: 244.6 kB / 0.7649 GB, free: 31.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001041/1.21, allocations: 462.1 kB / 0.7654 GB, free: 30.96 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01048/1.221, allocations: 5.657 MB / 0.7709 GB, free: 28.66 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.53e-05/1.221, allocations: 38.41 kB / 0.7709 GB, free: 28.66 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-05/1.221, allocations: 12.31 kB / 0.771 GB, free: 28.66 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-05/1.221, allocations: 23.91 kB / 0.771 GB, free: 28.66 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02009/1.241, allocations: 12.89 MB / 0.7836 GB, free: 22.85 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.302e-05/1.241, allocations: 8.875 kB / 0.7836 GB, free: 22.85 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003315/1.244, allocations: 0.7243 MB / 0.7843 GB, free: 22.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002185/1.246, allocations: 0.8983 MB / 0.7852 GB, free: 22.53 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002532/1.247, allocations: 39.22 kB / 0.7852 GB, free: 22.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01225/1.259, allocations: 13.08 MB / 0.798 GB, free: 12.64 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/1.259, allocations: 9.5 kB / 0.798 GB, free: 12.63 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01193/1.271, allocations: 9.03 MB / 0.8068 GB, free: 4.141 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003161/1.274, allocations: 0.9924 MB / 0.8078 GB, free: 3.234 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001427/1.276, allocations: 22.67 kB / 0.8078 GB, free: 3.215 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003006/1.279, allocations: 148.7 kB / 0.8079 GB, free: 3.102 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000457/1.279, allocations: 245.8 kB / 0.8082 GB, free: 2.957 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002649/1.279, allocations: 112.9 kB / 0.8083 GB, free: 2.855 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.003611/1.283, allocations: 2.344 MB / 0.8106 GB, free: 0.75 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.009604/1.293, allocations: 1.669 MB / 0.8122 GB, free: 0 / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (343): * Single equations (assignments): 336 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.123/1.416, allocations: 0.5158 MB / 0.8127 GB, free: 60.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007538/1.423, allocations: 5.657 MB / 0.8182 GB, free: 59.79 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/1.423, allocations: 3.781 kB / 0.8182 GB, free: 59.79 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004513/1.428, allocations: 3.341 MB / 0.8215 GB, free: 59.19 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004458/1.432, allocations: 0.7394 MB / 0.8222 GB, free: 59.17 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02655/1.459, allocations: 12.34 MB / 0.8343 GB, free: 56.66 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006375/1.465, allocations: 5.52 MB / 0.8396 GB, free: 55.81 MB / 394.7 MB Notification: Performance of SimCode: time 1.272e-06/1.465, allocations: 3.594 kB / 0.8397 GB, free: 55.81 MB / 394.7 MB Notification: Performance of Templates: time 0.1076/1.573, allocations: 64.85 MB / 0.903 GB, free: 51.54 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe 2>&1)