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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001668/0.001668, allocations: 112.6 kB / 17.06 MB, free: 6.016 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.001577/0.001577, allocations: 195.9 kB / 18 MB, free: 5.098 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.371/1.371, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001263/0.001263, allocations: 51.92 kB / 327.9 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1025, allocations: 46.61 MB / 374.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.2108/0.3133, allocations: 16.75 MB / 391.2 MB, free: 3.746 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01174/0.3251, allocations: 5.724 MB / 397 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003928/0.3292, allocations: 97.66 kB / 397.1 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004559/0.3338, allocations: 1.382 MB / 398.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007206/0.341, allocations: 1.829 MB / 400.3 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003654/0.3447, allocations: 1.06 MB / 401.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01164/0.3563, allocations: 6.327 MB / 407.7 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0121/0.3685, allocations: 5.28 MB / 412.9 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006896/0.3754, allocations: 2.956 MB / 415.9 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006875/0.3823, allocations: 3.339 MB / 419.2 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002276/0.3845, allocations: 0.7891 MB / 420 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004056/0.3886, allocations: 1.058 MB / 421.1 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003751/0.3924, allocations: 1.862 MB / 422.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007902/0.4003, allocations: 3.353 MB / 426.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01408/0.4144, allocations: 10.51 MB / 436.8 MB, free: 1.402 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/0.4144, allocations: 4 kB / 436.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4144, allocations: 4 kB / 436.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003471/0.4148, allocations: 0 / 436.8 MB, free: 1.395 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.02144/0.4363, allocations: 6.511 MB / 443.3 MB, free: 10.8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.669e-05/0.4363, allocations: 15.89 kB / 443.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006555/0.4429, allocations: 1.052 MB / 444.4 MB, free: 9.727 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008417/0.4513, allocations: 3.416 MB / 447.8 MB, free: 6.234 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004184/0.4518, allocations: 365.7 kB / 448.2 MB, free: 5.875 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001771/0.4536, allocations: 487.9 kB / 448.6 MB, free: 5.398 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01678/0.4704, allocations: 6.869 MB / 455.5 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000181/0.4706, allocations: 11.94 kB / 455.5 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001123/0.4717, allocations: 196 kB / 455.7 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002471/0.472, allocations: 241.8 kB / 456 MB, free: 14.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01254/0.4845, allocations: 5.926 MB / 461.9 MB, free: 8.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03895/0.5235, allocations: 20.67 MB / 482.5 MB, free: 2.965 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009854/0.5334, allocations: 9.955 MB / 492.5 MB, free: 7.977 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004171/0.5377, allocations: 2.477 MB / 495 MB, free: 5.492 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01303/0.5507, allocations: 6.482 MB / 0.4897 GB, free: 14.89 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.018e-05/0.5508, allocations: 64.56 kB / 0.4898 GB, free: 14.82 MB / 430.1 MB Notification: Performance of pre-optimization done (n=219): time 4.939e-06/0.5508, allocations: 0 / 0.4898 GB, free: 14.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=226): time 0.01967/0.5705, allocations: 9.679 MB / 0.4992 GB, free: 4.93 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.935e-05/0.5706, allocations: 73.41 kB / 0.4993 GB, free: 4.844 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006361/0.577, allocations: 2.992 MB / 0.5022 GB, free: 1.836 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003628/0.5774, allocations: 65.7 kB / 0.5023 GB, free: 1.766 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00177/0.5792, allocations: 2.156 MB / 0.5044 GB, free: 15.58 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008457/0.58, allocations: 0.7624 MB / 0.5051 GB, free: 14.81 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001082/0.5811, allocations: 473 kB / 0.5056 GB, free: 14.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.881e-05/0.5812, allocations: 301.1 kB / 0.5059 GB, free: 14.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002258/0.5835, allocations: 1.286 MB / 0.5071 GB, free: 12.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002705/0.5862, allocations: 1.924 MB / 0.509 GB, free: 10.57 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004992/0.5912, allocations: 3.348 MB / 0.5123 GB, free: 6.969 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.924e-05/0.5913, allocations: 7.938 kB / 0.5123 GB, free: 6.961 MB / 446.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007789/0.5991, allocations: 4.245 MB / 0.5164 GB, free: 2.672 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.83e-05/0.5991, allocations: 16 kB / 0.5164 GB, free: 2.656 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.525e-05/0.5992, allocations: 16 kB / 0.5165 GB, free: 2.641 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002245/0.6014, allocations: 0.7197 MB / 0.5172 GB, free: 1.906 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002252/0.6037, allocations: 0.5656 MB / 0.5177 GB, free: 1.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01105/0.6148, allocations: 10.89 MB / 0.5283 GB, free: 5.895 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00279/0.6176, allocations: 99.95 kB / 0.5284 GB, free: 5.797 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004697/0.6181, allocations: 107.9 kB / 0.5285 GB, free: 5.691 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.003247/0.6213, allocations: 1.617 MB / 0.5301 GB, free: 4.062 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009972/0.6223, allocations: 312.2 kB / 0.5304 GB, free: 3.754 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007344/0.6297, allocations: 3.906 MB / 0.5342 GB, free: 15.78 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.097e-05/0.6297, allocations: 24 kB / 0.5343 GB, free: 15.75 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.475e-05/0.6298, allocations: 12 kB / 0.5343 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.357e-05/0.6298, allocations: 11.95 kB / 0.5343 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01607/0.6459, allocations: 8.563 MB / 0.5426 GB, free: 7.016 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/0.6459, allocations: 3.984 kB / 0.5426 GB, free: 7.012 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001616/0.6475, allocations: 347.8 kB / 0.543 GB, free: 6.672 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002742/0.6503, allocations: 0.8799 MB / 0.5438 GB, free: 5.773 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002133/0.6506, allocations: 59.98 kB / 0.5439 GB, free: 5.715 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2058/0.8564, allocations: 15.67 MB / 0.5592 GB, free: 141 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.8564, allocations: 2.25 kB / 0.5592 GB, free: 141 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009509/0.8659, allocations: 5.705 MB / 0.5648 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001709/0.8677, allocations: 0.6893 MB / 0.5654 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003891/0.8681, allocations: 58.81 kB / 0.5655 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/0.8695, allocations: 107.6 kB / 0.5656 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005056/0.87, allocations: 188.2 kB / 0.5658 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001541/0.8702, allocations: 63.22 kB / 0.5658 GB, free: 138.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003413/0.8736, allocations: 2.062 MB / 0.5678 GB, free: 137.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8736, allocations: 0 / 0.5678 GB, free: 137.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003299/0.8769, allocations: 0.9406 MB / 0.5688 GB, free: 137.4 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.0006514/0.8776, allocations: 262.1 kB / 0.569 GB, free: 137.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006697/0.8843, allocations: 3.903 MB / 0.5728 GB, free: 135.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.8843, allocations: 1.406 kB / 0.5728 GB, free: 135.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004136/0.8884, allocations: 2.635 MB / 0.5754 GB, free: 134 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004313/0.8928, allocations: 0.9109 MB / 0.5763 GB, free: 133.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01562/0.9084, allocations: 9.41 MB / 0.5855 GB, free: 129.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002997/0.9115, allocations: 3.425 MB / 0.5888 GB, free: 128 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002484/0.914, allocations: 0.7634 MB / 0.5896 GB, free: 127.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005404/0.9145, allocations: 196.5 kB / 0.5898 GB, free: 127.9 MB / 478.1 MB Notification: Performance of SimCode: time 8.72e-07/0.9145, allocations: 0 / 0.5898 GB, free: 127.9 MB / 478.1 MB Notification: Performance of Templates: time 0.06978/0.9843, allocations: 48.88 MB / 0.6375 GB, free: 80.98 MB / 478.1 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)