Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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.1_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.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006818/0.006818, allocations: 104.2 kB / 15.74 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 196.2 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.322/1.322, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 55.94 kB / 326.6 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08772/0.08895, allocations: 46.61 MB / 373.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.2169/0.3059, allocations: 16.75 MB / 389.9 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01295/0.3189, allocations: 5.723 MB / 395.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004738/0.3237, allocations: 97.56 kB / 395.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005094/0.3288, allocations: 1.325 MB / 397.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008102/0.337, allocations: 1.777 MB / 398.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003776/0.3408, allocations: 1.062 MB / 399.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01114/0.3519, allocations: 6.319 MB / 406.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01185/0.3638, allocations: 5.284 MB / 411.5 MB, free: 7.133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007862/0.3717, allocations: 2.937 MB / 414.5 MB, free: 5.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007468/0.3792, allocations: 3.339 MB / 417.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002634/0.3819, allocations: 0.7891 MB / 418.6 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004588/0.3865, allocations: 1.062 MB / 419.6 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003523/0.39, allocations: 1.858 MB / 421.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006762/0.3968, allocations: 3.353 MB / 424.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01358/0.4104, allocations: 10.51 MB / 435.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.4105, allocations: 0 / 435.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.4105, allocations: 4 kB / 435.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003769/0.4109, allocations: 0 / 435.4 MB, free: 1.324 MB / 350.1 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.02169/0.4326, allocations: 6.511 MB / 441.9 MB, free: 10.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.4327, allocations: 15.89 kB / 441.9 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005305/0.438, allocations: 1.052 MB / 442.9 MB, free: 9.656 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007874/0.4459, allocations: 3.42 MB / 446.4 MB, free: 6.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003426/0.4463, allocations: 369.7 kB / 446.7 MB, free: 5.797 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001359/0.4476, allocations: 483.9 kB / 447.2 MB, free: 5.324 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01366/0.4613, allocations: 6.869 MB / 454.1 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.987e-05/0.4614, allocations: 8 kB / 454.1 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000514/0.462, allocations: 200 kB / 454.3 MB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002181/0.4622, allocations: 237.8 kB / 454.5 MB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01106/0.4732, allocations: 5.926 MB / 460.4 MB, free: 8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04149/0.5148, allocations: 20.66 MB / 481.1 MB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01127/0.5261, allocations: 9.955 MB / 491 MB, free: 7.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004707/0.5308, allocations: 2.477 MB / 493.5 MB, free: 5.426 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01354/0.5444, allocations: 6.49 MB / 0.4883 GB, free: 14.82 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.746e-05/0.5445, allocations: 64.56 kB / 0.4884 GB, free: 14.75 MB / 430.1 MB Notification: Performance of pre-optimization done (n=219): time 4.117e-06/0.5445, allocations: 0 / 0.4884 GB, free: 14.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=226): time 0.02032/0.5648, allocations: 9.683 MB / 0.4978 GB, free: 4.852 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.366e-05/0.5649, allocations: 77.34 kB / 0.4979 GB, free: 4.762 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006414/0.5713, allocations: 2.992 MB / 0.5008 GB, free: 1.754 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004866/0.5719, allocations: 61.7 kB / 0.5009 GB, free: 1.688 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001755/0.5736, allocations: 2.152 MB / 0.503 GB, free: 15.51 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001021/0.5747, allocations: 0.7663 MB / 0.5037 GB, free: 14.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001127/0.5758, allocations: 469 kB / 0.5042 GB, free: 14.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.576, allocations: 305.1 kB / 0.5045 GB, free: 13.97 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002381/0.5784, allocations: 1.289 MB / 0.5057 GB, free: 12.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002739/0.5811, allocations: 1.92 MB / 0.5076 GB, free: 10.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004962/0.5861, allocations: 3.348 MB / 0.5109 GB, free: 6.895 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.549e-05/0.5861, allocations: 7.938 kB / 0.5109 GB, free: 6.887 MB / 446.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007567/0.5937, allocations: 4.245 MB / 0.515 GB, free: 2.598 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.5938, allocations: 12 kB / 0.515 GB, free: 2.586 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.448e-05/0.5938, allocations: 20 kB / 0.515 GB, free: 2.566 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002297/0.5961, allocations: 0.716 MB / 0.5157 GB, free: 1.836 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00248/0.5986, allocations: 0.5695 MB / 0.5163 GB, free: 1.266 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01142/0.6101, allocations: 10.88 MB / 0.5269 GB, free: 5.828 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002709/0.6128, allocations: 99.94 kB / 0.527 GB, free: 5.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004532/0.6133, allocations: 108 kB / 0.5271 GB, free: 5.625 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (278): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003543/0.6168, allocations: 1.61 MB / 0.5287 GB, free: 4.004 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00111/0.618, allocations: 320.1 kB / 0.529 GB, free: 3.688 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007361/0.6253, allocations: 3.902 MB / 0.5328 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.86e-05/0.6254, allocations: 24 kB / 0.5328 GB, free: 15.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-05/0.6254, allocations: 12 kB / 0.5328 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.64e-05/0.6255, allocations: 11.95 kB / 0.5329 GB, free: 15.67 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01667/0.6422, allocations: 8.571 MB / 0.5412 GB, free: 6.945 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/0.6422, allocations: 4 kB / 0.5412 GB, free: 6.941 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001611/0.6438, allocations: 347.8 kB / 0.5416 GB, free: 6.602 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002813/0.6467, allocations: 0.8719 MB / 0.5424 GB, free: 5.711 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002115/0.6469, allocations: 59.97 kB / 0.5425 GB, free: 5.652 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2473/0.8942, allocations: 15.68 MB / 0.5578 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.8943, allocations: 4.844 kB / 0.5578 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009568/0.9039, allocations: 5.693 MB / 0.5633 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001986/0.9059, allocations: 0.6919 MB / 0.564 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004935/0.9064, allocations: 57.52 kB / 0.5641 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001453/0.9078, allocations: 108 kB / 0.5642 GB, free: 137.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005564/0.9084, allocations: 184.1 kB / 0.5644 GB, free: 137.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001649/0.9086, allocations: 60.05 kB / 0.5644 GB, free: 137.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003611/0.9122, allocations: 2.069 MB / 0.5664 GB, free: 137.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.9122, allocations: 3.906 kB / 0.5664 GB, free: 137.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003705/0.9159, allocations: 0.9369 MB / 0.5673 GB, free: 137 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,8,100.0%), (2,26,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006772/0.9166, allocations: 266.3 kB / 0.5676 GB, free: 136.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006447/0.9231, allocations: 3.903 MB / 0.5714 GB, free: 135.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.9231, allocations: 0 / 0.5714 GB, free: 135.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004244/0.9274, allocations: 2.632 MB / 0.574 GB, free: 133.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004468/0.9318, allocations: 0.917 MB / 0.5749 GB, free: 133.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01639/0.9483, allocations: 9.399 MB / 0.5841 GB, free: 129 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00289/0.9512, allocations: 3.425 MB / 0.5874 GB, free: 127.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002455/0.9537, allocations: 0.7569 MB / 0.5881 GB, free: 127.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000553/0.9542, allocations: 197.9 kB / 0.5883 GB, free: 127.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.723e-06/0.9542, allocations: 4 kB / 0.5883 GB, free: 127.6 MB / 478.1 MB Notification: Performance of Templates: time 0.07067/1.025, allocations: 48.88 MB / 0.6361 GB, free: 80.72 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)