Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.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.Electrical.Machines.Examples.Transformers.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer") translateModel(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.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.1+maint.om/package.mo): time 0.00382/0.00382, allocations: 177.8 kB / 7.454 MB, free: 2.484 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.22/1.22, allocations: 170.6 MB / 178.4 MB, free: 15.39 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.001808/0.001808, allocations: 111.9 kB / 217.7 MB, free: 8.16 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.965e-06/7.995e-06, allocations: 0 / 261.8 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08342/0.08345, allocations: 38.76 MB / 300.5 MB, free: 3.887 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3231/0.4066, allocations: 101.5 MB / 402 MB, free: 15.38 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003272/0.407, allocations: 84.27 kB / 402 MB, free: 15.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 0.4508/0.8578, allocations: 93.41 MB / 495.5 MB, free: 69.56 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0009399/0.8589, allocations: 97.19 kB / 495.6 MB, free: 69.55 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: 929 * Number of variables: 929 Notification: Performance of Generate backend data structure: time 0.01445/0.8733, allocations: 3.534 MB / 499.1 MB, free: 68.17 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.124e-05/0.8734, allocations: 11.41 kB / 499.1 MB, free: 68.17 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003665/0.8771, allocations: 0.5093 MB / 499.6 MB, free: 67.94 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00851/0.8856, allocations: 2.523 MB / 0.4904 GB, free: 67.38 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003092/0.886, allocations: 116.7 kB / 0.4905 GB, free: 67.38 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001952/0.888, allocations: 216.3 kB / 0.4907 GB, free: 67.38 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01069/0.8987, allocations: 3.767 MB / 0.4944 GB, free: 67.36 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01493/0.9137, allocations: 4.385 MB / 0.4986 GB, free: 66.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002282/0.914, allocations: 7.562 kB / 0.4986 GB, free: 66.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001304/0.9153, allocations: 5.594 kB / 0.4987 GB, free: 66.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000184/0.9155, allocations: 181.2 kB / 0.4988 GB, free: 66.85 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03365/0.9491, allocations: 14.31 MB / 0.5128 GB, free: 60.92 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002702/0.9519, allocations: 1.624 MB / 0.5144 GB, free: 60.32 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003098/0.955, allocations: 1.993 MB / 0.5163 GB, free: 59.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004391/0.9555, allocations: 145 kB / 0.5165 GB, free: 59.58 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.045e-05/0.9556, allocations: 56.44 kB / 0.5165 GB, free: 59.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=201): time 5.671e-06/0.9556, allocations: 3.938 kB / 0.5165 GB, free: 59.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=221): time 0.01933/0.975, allocations: 7.389 MB / 0.5237 GB, free: 56.54 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.902e-05/0.9751, allocations: 74.69 kB / 0.5238 GB, free: 56.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005521/0.9806, allocations: 1.743 MB / 0.5255 GB, free: 55.78 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006955/0.9814, allocations: 26.83 kB / 0.5255 GB, free: 55.75 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001338/0.9827, allocations: 1.247 MB / 0.5268 GB, free: 54.86 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001156/0.9839, allocations: 0.7054 MB / 0.5274 GB, free: 54.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003912/0.9843, allocations: 0 / 0.5274 GB, free: 54.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002398/0.9846, allocations: 405.3 kB / 0.5278 GB, free: 53.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002483/0.9871, allocations: 1.247 MB / 0.5291 GB, free: 53.49 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002744/0.9898, allocations: 1.662 MB / 0.5307 GB, free: 52.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002456/0.9923, allocations: 1.51 MB / 0.5322 GB, free: 51 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.721e-05/0.9924, allocations: 4 kB / 0.5322 GB, free: 50.99 MB / 346.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.008289/1.001, allocations: 3.783 MB / 0.5358 GB, free: 47.69 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/1.001, allocations: 7.609 kB / 0.5359 GB, free: 47.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.438e-05/1.001, allocations: 15.75 kB / 0.5359 GB, free: 47.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001931/1.003, allocations: 0.7633 MB / 0.5366 GB, free: 47.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002407/1.005, allocations: 0.5268 MB / 0.5371 GB, free: 46.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00832/1.013, allocations: 8.068 MB / 0.545 GB, free: 38.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002685/1.016, allocations: 55.38 kB / 0.5451 GB, free: 38.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005869/1.017, allocations: 87.7 kB / 0.5451 GB, free: 38.76 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (248): * Single equations (assignments): 243 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006697/1.017, allocations: 160.4 kB / 0.5453 GB, free: 38.59 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009025/1.018, allocations: 241.1 kB / 0.5455 GB, free: 38.36 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008549/1.027, allocations: 3.546 MB / 0.549 GB, free: 35.39 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.75e-05/1.027, allocations: 22.88 kB / 0.549 GB, free: 35.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.867e-05/1.027, allocations: 12 kB / 0.549 GB, free: 35.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.931e-05/1.027, allocations: 11.48 kB / 0.549 GB, free: 35.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02001/1.047, allocations: 7.363 MB / 0.5562 GB, free: 29.35 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.437e-05/1.047, allocations: 4 kB / 0.5562 GB, free: 29.35 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00285/1.05, allocations: 387.8 kB / 0.5566 GB, free: 29.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003483/1.054, allocations: 0.8214 MB / 0.5574 GB, free: 28.38 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004119/1.054, allocations: 27.41 kB / 0.5574 GB, free: 28.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01442/1.068, allocations: 9.502 MB / 0.5667 GB, free: 19.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/1.068, allocations: 8.062 kB / 0.5667 GB, free: 19.15 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01301/1.082, allocations: 5.625 MB / 0.5722 GB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003155/1.085, allocations: 0.6058 MB / 0.5728 GB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001291/1.086, allocations: 19.52 kB / 0.5728 GB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002562/1.089, allocations: 84.02 kB / 0.5729 GB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004363/1.089, allocations: 142 kB / 0.573 GB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000235/1.089, allocations: 63.98 kB / 0.5731 GB, free: 13.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.002861/1.092, allocations: 1.317 MB / 0.5744 GB, free: 11.9 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004376/1.097, allocations: 0.7149 MB / 0.5751 GB, free: 11.18 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (178): * Single equations (assignments): 173 * 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%) 12,(1,100.0%) 1,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008509/1.097, allocations: 341.9 kB / 0.5754 GB, free: 10.88 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006887/1.104, allocations: 3.64 MB / 0.579 GB, free: 7.168 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/1.104, allocations: 3.938 kB / 0.579 GB, free: 7.164 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004941/1.109, allocations: 2.3 MB / 0.5812 GB, free: 4.809 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004864/1.114, allocations: 0.5041 MB / 0.5817 GB, free: 4.32 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2147/1.329, allocations: 6.41 MB / 0.588 GB, free: 95.02 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008193/1.337, allocations: 2.983 MB / 0.5909 GB, free: 94.25 MB / 346.7 MB Notification: Performance of SimCode: time 2.014e-06/1.337, allocations: 0 / 0.5909 GB, free: 94.25 MB / 346.7 MB Notification: Performance of Templates: time 0.1046/1.442, allocations: 37.71 MB / 0.6277 GB, free: 92.64 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1)