Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.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.Electrical.Machines.Examples.Transformers.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer") translateModel(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001031/0.001031, allocations: 194.2 kB / 8.138 MB, free: 2.191 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.095/1.095, allocations: 194.2 MB / 202.8 MB, free: 8.723 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.001829/0.001829, allocations: 121.3 kB / 247.7 MB, free: 6.273 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.105e-05/1.109e-05, allocations: 0 / 297.6 MB, free: 7.965 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07806/0.07809, allocations: 44.49 MB / 342.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2182/0.2963, allocations: 106.6 MB / 448.7 MB, free: 4.758 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001933/0.2965, allocations: 88.05 kB / 448.8 MB, free: 4.715 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.3702/0.6667, allocations: 92.98 MB / 0.5291 GB, free: 71.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003322/0.6671, allocations: 97.56 kB / 0.5292 GB, free: 71.11 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.008307/0.6754, allocations: 3.549 MB / 0.5326 GB, free: 69.82 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.6755, allocations: 8 kB / 0.5326 GB, free: 69.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002096/0.6776, allocations: 0.5072 MB / 0.5331 GB, free: 69.6 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005465/0.6831, allocations: 2.575 MB / 0.5357 GB, free: 69.06 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001367/0.6832, allocations: 111.3 kB / 0.5358 GB, free: 69.06 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008045/0.684, allocations: 212.3 kB / 0.536 GB, free: 69.05 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006641/0.6907, allocations: 3.795 MB / 0.5397 GB, free: 69.04 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00801/0.6987, allocations: 4.397 MB / 0.544 GB, free: 68.55 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000102/0.6988, allocations: 14.25 kB / 0.544 GB, free: 68.55 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004652/0.6993, allocations: 3.938 kB / 0.544 GB, free: 68.55 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001251/0.6994, allocations: 178.2 kB / 0.5441 GB, free: 68.54 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02262/0.7221, allocations: 14.37 MB / 0.5582 GB, free: 65.04 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002045/0.7241, allocations: 1.627 MB / 0.5598 GB, free: 64.45 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002415/0.7266, allocations: 1.993 MB / 0.5617 GB, free: 63.79 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003543/0.727, allocations: 145.6 kB / 0.5619 GB, free: 63.69 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.727, allocations: 59.47 kB / 0.5619 GB, free: 63.64 MB / 394.7 MB Notification: Performance of pre-optimization done (n=201): time 3.667e-06/0.727, allocations: 4 kB / 0.5619 GB, free: 63.63 MB / 394.7 MB Notification: Performance of matching and sorting (n=221): time 0.0141/0.7411, allocations: 7.382 MB / 0.5691 GB, free: 60.67 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.7412, allocations: 80.64 kB / 0.5692 GB, free: 60.61 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00312/0.7443, allocations: 1.769 MB / 0.5709 GB, free: 59.89 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001928/0.7446, allocations: 25.7 kB / 0.571 GB, free: 59.86 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005701/0.7451, allocations: 1.257 MB / 0.5722 GB, free: 58.97 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004694/0.7456, allocations: 0.7075 MB / 0.5729 GB, free: 58.41 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.7458, allocations: 0 / 0.5729 GB, free: 58.41 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.7459, allocations: 395.8 kB / 0.5732 GB, free: 58.07 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001654/0.7476, allocations: 1.246 MB / 0.5745 GB, free: 57.61 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001966/0.7495, allocations: 1.67 MB / 0.5761 GB, free: 56.66 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002125/0.7517, allocations: 1.499 MB / 0.5776 GB, free: 56.11 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-05/0.7517, allocations: 2.969 kB / 0.5776 GB, free: 56.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.006211/0.7579, allocations: 3.799 MB / 0.5813 GB, free: 54.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.7579, allocations: 4.906 kB / 0.5813 GB, free: 54.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.223e-05/0.758, allocations: 12.38 kB / 0.5813 GB, free: 54.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001954/0.7599, allocations: 0.766 MB / 0.582 GB, free: 54.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002383/0.7623, allocations: 0.5228 MB / 0.5825 GB, free: 54.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008711/0.7711, allocations: 8.071 MB / 0.5904 GB, free: 48.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002347/0.7734, allocations: 65 kB / 0.5905 GB, free: 48.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004802/0.7739, allocations: 89 kB / 0.5906 GB, free: 48.95 MB / 394.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.000563/0.7745, allocations: 161.7 kB / 0.5907 GB, free: 48.83 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007431/0.7753, allocations: 245.6 kB / 0.591 GB, free: 48.7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006052/0.7813, allocations: 3.534 MB / 0.5944 GB, free: 47.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.766e-05/0.7814, allocations: 23.16 kB / 0.5944 GB, free: 47.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-05/0.7814, allocations: 11.25 kB / 0.5945 GB, free: 47.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.99e-05/0.7814, allocations: 9.938 kB / 0.5945 GB, free: 47.43 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01314/0.7946, allocations: 7.391 MB / 0.6017 GB, free: 44.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/0.7946, allocations: 7.469 kB / 0.6017 GB, free: 44.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001871/0.7965, allocations: 385.9 kB / 0.6021 GB, free: 44.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002201/0.7987, allocations: 0.8057 MB / 0.6028 GB, free: 44.33 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002114/0.7989, allocations: 21.11 kB / 0.6029 GB, free: 44.33 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008547/0.8075, allocations: 9.518 MB / 0.6122 GB, free: 37.43 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.8075, allocations: 10.38 kB / 0.6122 GB, free: 37.42 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007574/0.8151, allocations: 5.625 MB / 0.6177 GB, free: 33.78 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001503/0.8167, allocations: 0.6004 MB / 0.6182 GB, free: 33.23 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007403/0.8174, allocations: 19.84 kB / 0.6183 GB, free: 33.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001689/0.8191, allocations: 83.08 kB / 0.6183 GB, free: 33.15 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003085/0.8194, allocations: 138.4 kB / 0.6185 GB, free: 33.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001775/0.8196, allocations: 75.31 kB / 0.6185 GB, free: 33 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002071/0.8217, allocations: 1.331 MB / 0.6198 GB, free: 31.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002673/0.8244, allocations: 0.7149 MB / 0.6205 GB, free: 31.09 MB / 394.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.0006471/0.825, allocations: 331.5 kB / 0.6209 GB, free: 30.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004772/0.8298, allocations: 3.64 MB / 0.6244 GB, free: 27.44 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.8298, allocations: 2.625 kB / 0.6244 GB, free: 27.44 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003052/0.8329, allocations: 2.304 MB / 0.6267 GB, free: 25.31 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002886/0.8358, allocations: 0.5048 MB / 0.6272 GB, free: 24.91 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01255/0.8484, allocations: 6.441 MB / 0.6334 GB, free: 19.22 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003862/0.8523, allocations: 2.989 MB / 0.6364 GB, free: 16.89 MB / 394.7 MB Notification: Performance of SimCode: time 6.72e-07/0.8523, allocations: 0 / 0.6364 GB, free: 16.89 MB / 394.7 MB Notification: Performance of Templates: time 0.1563/1.009, allocations: 37.92 MB / 0.6734 GB, free: 100.8 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1)