Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.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_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") [: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.001824/0.001824, allocations: 188.7 kB / 8.138 MB, free: 0.875 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.176/1.176, allocations: 194.2 MB / 202.8 MB, free: 2.062 MB / 162.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001867/0.001867, allocations: 116.4 kB / 247.8 MB, free: 5.082 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 6.883e-06/7.013e-06, allocations: 0 / 297.6 MB, free: 8.18 MB / 210.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07715/0.07718, allocations: 44.5 MB / 342.1 MB, free: 11.59 MB / 258.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2392/0.3164, allocations: 112.4 MB / 454.5 MB, free: 3.363 MB / 338.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.3166, allocations: 92.48 kB / 454.5 MB, free: 3.277 MB / 338.8 MB Notification: Performance of FrontEnd: time 0.4531/0.7698, allocations: 131.9 MB / 0.5727 GB, free: 65.87 MB / 386.8 MB Notification: Performance of Transformations before backend: time 0.0005067/0.7703, allocations: 123.8 kB / 0.5728 GB, free: 65.75 MB / 386.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01431/0.7846, allocations: 4.775 MB / 0.5775 GB, free: 60.92 MB / 386.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.7847, allocations: 8.031 kB / 0.5775 GB, free: 60.91 MB / 386.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006281/0.791, allocations: 0.977 MB / 0.5784 GB, free: 59.93 MB / 386.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01197/0.803, allocations: 4.509 MB / 0.5828 GB, free: 55.42 MB / 386.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003176/0.8033, allocations: 156 kB / 0.583 GB, free: 55.27 MB / 386.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001729/0.8051, allocations: 291.8 kB / 0.5833 GB, free: 54.98 MB / 386.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0114/0.8165, allocations: 5.221 MB / 0.5884 GB, free: 49.76 MB / 386.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01411/0.8306, allocations: 5.994 MB / 0.5942 GB, free: 43.58 MB / 386.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001903/0.8309, allocations: 0 / 0.5942 GB, free: 43.58 MB / 386.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001199/0.8321, allocations: 7.984 kB / 0.5942 GB, free: 43.57 MB / 386.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001997/0.8323, allocations: 249.8 kB / 0.5945 GB, free: 43.33 MB / 386.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03756/0.8699, allocations: 20.2 MB / 0.6142 GB, free: 22.88 MB / 386.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002968/0.8729, allocations: 1.996 MB / 0.6161 GB, free: 20.88 MB / 386.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003881/0.8768, allocations: 2.601 MB / 0.6187 GB, free: 18.28 MB / 386.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01166/0.8885, allocations: 5.482 MB / 0.624 GB, free: 12.74 MB / 386.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.287e-05/0.8886, allocations: 64.56 kB / 0.6241 GB, free: 12.66 MB / 386.8 MB Notification: Performance of pre-optimization done (n=254): time 6.582e-06/0.8886, allocations: 0 / 0.6241 GB, free: 12.66 MB / 386.8 MB Notification: Performance of matching and sorting (n=261): time 0.01575/0.9043, allocations: 7.84 MB / 0.6317 GB, free: 4.711 MB / 386.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.23e-05/0.9044, allocations: 85.41 kB / 0.6318 GB, free: 4.613 MB / 386.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004014/0.9084, allocations: 2.122 MB / 0.6339 GB, free: 2.477 MB / 386.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003846/0.9088, allocations: 33.7 kB / 0.6339 GB, free: 2.438 MB / 386.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008495/0.9097, allocations: 1.69 MB / 0.6356 GB, free: 0.7188 MB / 386.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.1233/1.033, allocations: 0.8326 MB / 0.6364 GB, free: 94.25 MB / 386.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002046/1.033, allocations: 0 / 0.6364 GB, free: 94.25 MB / 386.8 MB Notification: Performance of setup shared object (initialization): time 0.0001751/1.033, allocations: 416.2 kB / 0.6368 GB, free: 93.95 MB / 386.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001848/1.035, allocations: 1.36 MB / 0.6381 GB, free: 93.94 MB / 386.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002054/1.037, allocations: 1.936 MB / 0.64 GB, free: 93.31 MB / 386.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002487/1.04, allocations: 1.731 MB / 0.6417 GB, free: 93.27 MB / 386.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-05/1.04, allocations: 6.094 kB / 0.6417 GB, free: 93.27 MB / 386.8 MB Notification: Performance of matching and sorting (n=356) (initialization): time 0.007035/1.047, allocations: 4.26 MB / 0.6459 GB, free: 93.02 MB / 386.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/1.047, allocations: 6.156 kB / 0.6459 GB, free: 93.02 MB / 386.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.486e-05/1.047, allocations: 18.91 kB / 0.6459 GB, free: 93.02 MB / 386.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001754/1.049, allocations: 0.6381 MB / 0.6465 GB, free: 92.98 MB / 386.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002882/1.052, allocations: 0.6063 MB / 0.6471 GB, free: 92.98 MB / 386.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008938/1.061, allocations: 9.42 MB / 0.6563 GB, free: 88.04 MB / 386.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002686/1.063, allocations: 61.03 kB / 0.6564 GB, free: 88.04 MB / 386.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003362/1.064, allocations: 110.6 kB / 0.6565 GB, free: 88.04 MB / 386.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (306): * Single equations (assignments): 301 * 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: 4 * 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: 4 {(2,100.0%) 26,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005274/1.064, allocations: 161.9 kB / 0.6566 GB, free: 87.94 MB / 386.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006398/1.065, allocations: 291.5 kB / 0.6569 GB, free: 87.94 MB / 386.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006989/1.072, allocations: 4.045 MB / 0.6609 GB, free: 87.54 MB / 386.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-05/1.072, allocations: 23.59 kB / 0.6609 GB, free: 87.54 MB / 386.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.957e-05/1.072, allocations: 11.56 kB / 0.6609 GB, free: 87.54 MB / 386.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-05/1.072, allocations: 18.27 kB / 0.6609 GB, free: 87.54 MB / 386.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01524/1.087, allocations: 8.608 MB / 0.6693 GB, free: 86.72 MB / 386.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/1.087, allocations: 0 / 0.6693 GB, free: 86.72 MB / 386.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002052/1.089, allocations: 398.4 kB / 0.6697 GB, free: 86.72 MB / 386.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002267/1.092, allocations: 0.8096 MB / 0.6705 GB, free: 86.67 MB / 386.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002749/1.092, allocations: 32.11 kB / 0.6705 GB, free: 86.67 MB / 386.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01219/1.104, allocations: 13.53 MB / 0.6837 GB, free: 79.16 MB / 386.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/1.104, allocations: 0 / 0.6837 GB, free: 79.16 MB / 386.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008662/1.113, allocations: 6.214 MB / 0.6898 GB, free: 77.34 MB / 386.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001796/1.115, allocations: 0.6964 MB / 0.6905 GB, free: 76.9 MB / 386.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007161/1.115, allocations: 17.09 kB / 0.6905 GB, free: 76.89 MB / 386.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001895/1.117, allocations: 83.41 kB / 0.6906 GB, free: 76.89 MB / 386.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003609/1.118, allocations: 157.4 kB / 0.6907 GB, free: 76.87 MB / 386.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001897/1.118, allocations: 74.25 kB / 0.6908 GB, free: 76.86 MB / 386.8 MB Notification: Performance of sort global known variables: time 0.002573/1.12, allocations: 1.602 MB / 0.6924 GB, free: 76.2 MB / 386.8 MB Notification: Performance of remove unused functions: time 0.003584/1.124, allocations: 0.8741 MB / 0.6932 GB, free: 76.18 MB / 386.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 185 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006776/1.125, allocations: 413.7 kB / 0.6936 GB, free: 76.08 MB / 386.8 MB Notification: Performance of simCode: created initialization part: time 0.005093/1.13, allocations: 3.9 MB / 0.6974 GB, free: 74.37 MB / 386.8 MB Notification: Performance of simCode: created event and clocks part: time 6.052e-06/1.13, allocations: 3.438 kB / 0.6974 GB, free: 74.37 MB / 386.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003398/1.133, allocations: 2.532 MB / 0.6999 GB, free: 73.1 MB / 386.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003133/1.136, allocations: 0.59 MB / 0.7005 GB, free: 72.96 MB / 386.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01615/1.153, allocations: 7.972 MB / 0.7082 GB, free: 70.05 MB / 386.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004138/1.157, allocations: 3.703 MB / 0.7119 GB, free: 68.68 MB / 386.8 MB Notification: Performance of SimCode: time 8.02e-07/1.157, allocations: 2.156 kB / 0.7119 GB, free: 68.68 MB / 386.8 MB Notification: Performance of Templates: time 0.07714/1.234, allocations: 45.6 MB / 0.7564 GB, free: 45.16 MB / 386.8 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)