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.001387/0.001387, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001681/0.001681, allocations: 194 kB / 16.53 MB, free: 6.664 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.416/1.416, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.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.001575/0.001575, allocations: 55.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2331, allocations: 46.64 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01684/0.25, allocations: 16.75 MB / 342.1 MB, free: 3.113 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01097/0.261, allocations: 5.709 MB / 347.8 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003208/0.2643, allocations: 99.62 kB / 347.9 MB, free: 13.29 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003579/0.2679, allocations: 1.328 MB / 349.2 MB, free: 11.95 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005545/0.2735, allocations: 1.779 MB / 351 MB, free: 10.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00293/0.2764, allocations: 1.06 MB / 352 MB, free: 9.102 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.009182/0.2856, allocations: 6.296 MB / 358.3 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00864/0.2943, allocations: 5.288 MB / 363.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006014/0.3004, allocations: 2.918 MB / 366.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006618/0.307, allocations: 3.328 MB / 369.9 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002642/0.3097, allocations: 0.7891 MB / 370.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004057/0.3137, allocations: 1.07 MB / 371.7 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003417/0.3172, allocations: 1.866 MB / 373.6 MB, free: 3.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006424/0.3236, allocations: 3.342 MB / 376.9 MB, free: 56 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01415/0.3378, allocations: 10.45 MB / 387.4 MB, free: 5.578 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.3378, allocations: 0 / 387.4 MB, free: 5.578 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3378, allocations: 0 / 387.4 MB, free: 5.578 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003388/0.3382, allocations: 0 / 387.4 MB, free: 5.578 MB / 318.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.02012/0.3583, allocations: 6.51 MB / 393.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.3584, allocations: 15.89 kB / 393.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006204/0.3646, allocations: 1.06 MB / 395 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00863/0.3733, allocations: 3.381 MB / 398.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004211/0.3737, allocations: 365.7 kB / 398.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001996/0.3757, allocations: 479.9 kB / 399.2 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01761/0.3934, allocations: 6.873 MB / 406 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002117/0.3936, allocations: 7.938 kB / 406.1 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001383/0.395, allocations: 196 kB / 406.2 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002768/0.3953, allocations: 249.8 kB / 406.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01427/0.4096, allocations: 5.922 MB / 412.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03911/0.4487, allocations: 20.94 MB / 433.3 MB, free: 6.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01056/0.4593, allocations: 9.96 MB / 443.3 MB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004091/0.4635, allocations: 2.485 MB / 445.8 MB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0125/0.476, allocations: 6.521 MB / 452.3 MB, free: 2.797 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.033e-05/0.4761, allocations: 56.56 kB / 452.4 MB, free: 2.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 5.05e-06/0.4761, allocations: 0 / 452.4 MB, free: 2.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.209/0.6851, allocations: 9.671 MB / 462 MB, free: 105.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.6852, allocations: 75.25 kB / 462.1 MB, free: 105.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004259/0.6895, allocations: 2.996 MB / 465.1 MB, free: 104.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002929/0.6898, allocations: 65.61 kB / 465.2 MB, free: 104.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001174/0.691, allocations: 2.153 MB / 467.3 MB, free: 102.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005162/0.6915, allocations: 0.7579 MB / 468.1 MB, free: 101.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006246/0.6921, allocations: 467.4 kB / 468.5 MB, free: 101.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.452e-05/0.6922, allocations: 308.7 kB / 468.8 MB, free: 101.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001753/0.694, allocations: 1.296 MB / 470.1 MB, free: 100.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001988/0.696, allocations: 1.925 MB / 472.1 MB, free: 99.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003524/0.6995, allocations: 3.339 MB / 475.4 MB, free: 97.78 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.006e-05/0.6995, allocations: 7.406 kB / 475.4 MB, free: 97.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.005924/0.7054, allocations: 4.251 MB / 479.7 MB, free: 95.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.261e-05/0.7055, allocations: 12 kB / 479.7 MB, free: 95.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.721e-05/0.7055, allocations: 17.2 kB / 479.7 MB, free: 95.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001997/0.7075, allocations: 0.7155 MB / 480.4 MB, free: 94.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00199/0.7095, allocations: 0.5656 MB / 481 MB, free: 93.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00802/0.7176, allocations: 10.9 MB / 491.9 MB, free: 82.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002442/0.7201, allocations: 103.9 kB / 492 MB, free: 82.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002361/0.7203, allocations: 104 kB / 492.1 MB, free: 82.24 MB / 382.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.003173/0.7235, allocations: 1.614 MB / 493.7 MB, free: 80.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007742/0.7243, allocations: 316.2 kB / 494 MB, free: 80.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005359/0.7296, allocations: 3.907 MB / 497.9 MB, free: 76.33 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/0.7297, allocations: 23.98 kB / 497.9 MB, free: 76.31 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.7297, allocations: 12 kB / 497.9 MB, free: 76.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.728e-05/0.7297, allocations: 11.97 kB / 497.9 MB, free: 76.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01317/0.7429, allocations: 8.568 MB / 0.4946 GB, free: 67.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/0.7429, allocations: 4 kB / 0.4946 GB, free: 67.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001367/0.7443, allocations: 347.8 kB / 0.495 GB, free: 67.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002301/0.7466, allocations: 0.8801 MB / 0.4958 GB, free: 66.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001676/0.7468, allocations: 55.98 kB / 0.4959 GB, free: 66.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01192/0.7587, allocations: 15.7 MB / 0.5112 GB, free: 49.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.7588, allocations: 4.031 kB / 0.5112 GB, free: 49.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008146/0.7669, allocations: 5.688 MB / 0.5168 GB, free: 44.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001776/0.7687, allocations: 0.6885 MB / 0.5175 GB, free: 43.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009037/0.7697, allocations: 55.98 kB / 0.5175 GB, free: 43.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001906/0.7716, allocations: 111.9 kB / 0.5176 GB, free: 43.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004449/0.772, allocations: 197.7 kB / 0.5178 GB, free: 42.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001486/0.7722, allocations: 61.41 kB / 0.5179 GB, free: 42.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003455/0.7757, allocations: 2.062 MB / 0.5199 GB, free: 40.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.7757, allocations: 0 / 0.5199 GB, free: 40.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003874/0.7796, allocations: 0.9388 MB / 0.5208 GB, free: 39.93 MB / 382.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.0006635/0.7802, allocations: 252.1 kB / 0.521 GB, free: 39.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00927/0.7895, allocations: 5.378 MB / 0.5263 GB, free: 34.26 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/0.7896, allocations: 0 / 0.5263 GB, free: 34.26 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003512/0.7931, allocations: 2.629 MB / 0.5289 GB, free: 31.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004639/0.7977, allocations: 0.9153 MB / 0.5297 GB, free: 30.64 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01556/0.8133, allocations: 9.512 MB / 0.539 GB, free: 21.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003484/0.8168, allocations: 3.437 MB / 0.5424 GB, free: 17.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002659/0.8195, allocations: 0.7526 MB / 0.5431 GB, free: 16.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007368/0.8203, allocations: 195.4 kB / 0.5433 GB, free: 16.67 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.8203, allocations: 0 / 0.5433 GB, free: 16.67 MB / 382.1 MB Notification: Performance of Templates: time 0.08248/0.9028, allocations: 51.03 MB / 0.5931 GB, free: 13.59 MB / 430.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)