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.001056/0.001056, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001018/0.001018, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.318/1.318, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.001235/0.001235, allocations: 59.92 kB / 280 MB, free: 3.156 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09103/0.09228, allocations: 46.62 MB / 326.6 MB, free: 4.461 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01805/0.1104, allocations: 16.76 MB / 343.4 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01039/0.1208, allocations: 5.709 MB / 349.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002545/0.1235, allocations: 99.5 kB / 349.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003189/0.1267, allocations: 1.328 MB / 350.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005054/0.1317, allocations: 1.779 MB / 352.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002294/0.134, allocations: 1.056 MB / 353.4 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006626/0.1407, allocations: 6.296 MB / 359.6 MB, free: 3.281 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005683/0.1464, allocations: 5.287 MB / 364.9 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004483/0.1509, allocations: 2.931 MB / 367.9 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003859/0.1548, allocations: 3.324 MB / 371.2 MB, free: 7.641 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001122/0.1559, allocations: 0.7891 MB / 372 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001968/0.1579, allocations: 1.074 MB / 373.1 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001434/0.1593, allocations: 1.866 MB / 374.9 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003219/0.1625, allocations: 3.353 MB / 378.3 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.191/0.3535, allocations: 10.42 MB / 388.7 MB, free: 22.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.3536, allocations: 0 / 388.7 MB, free: 22.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3536, allocations: 0 / 388.7 MB, free: 22.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003234/0.3539, allocations: 0 / 388.7 MB, free: 22.93 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.02122/0.3752, allocations: 6.514 MB / 395.2 MB, free: 20.1 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.3752, allocations: 15.42 kB / 395.2 MB, free: 20.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005651/0.3809, allocations: 1.058 MB / 396.3 MB, free: 19.65 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006863/0.3878, allocations: 3.372 MB / 399.7 MB, free: 18.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003115/0.3881, allocations: 370.3 kB / 400 MB, free: 18.47 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008877/0.389, allocations: 487.2 kB / 400.5 MB, free: 18.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01197/0.401, allocations: 6.872 MB / 407.4 MB, free: 14.37 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.014e-05/0.4011, allocations: 7.562 kB / 407.4 MB, free: 14.36 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000451/0.4016, allocations: 197.4 kB / 407.6 MB, free: 14.21 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001555/0.4017, allocations: 239.4 kB / 407.8 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008686/0.4104, allocations: 5.925 MB / 413.7 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03569/0.4461, allocations: 20.94 MB / 434.7 MB, free: 7.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01069/0.4569, allocations: 9.951 MB / 444.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003971/0.4609, allocations: 2.487 MB / 447.1 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01219/0.4731, allocations: 6.517 MB / 453.6 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.058e-05/0.4732, allocations: 59.84 kB / 453.7 MB, free: 3.195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=219): time 4.087e-06/0.4732, allocations: 2.625 kB / 453.7 MB, free: 3.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=226): time 0.01994/0.4931, allocations: 9.681 MB / 463.4 MB, free: 9.352 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.018e-05/0.4932, allocations: 73.41 kB / 463.4 MB, free: 9.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007224/0.5004, allocations: 2.992 MB / 466.4 MB, free: 6.262 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002892/0.5008, allocations: 65.69 kB / 466.5 MB, free: 6.191 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002095/0.5029, allocations: 2.153 MB / 468.6 MB, free: 4.023 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008401/0.5037, allocations: 0.7596 MB / 469.4 MB, free: 3.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009672/0.5047, allocations: 465.1 kB / 469.9 MB, free: 2.809 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.5048, allocations: 305.1 kB / 470.2 MB, free: 2.508 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002307/0.5071, allocations: 1.289 MB / 471.4 MB, free: 1.215 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002668/0.5098, allocations: 1.922 MB / 473.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004755/0.5146, allocations: 3.345 MB / 476.7 MB, free: 11.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-05/0.5146, allocations: 10.72 kB / 476.7 MB, free: 11.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007329/0.522, allocations: 4.25 MB / 481 MB, free: 7.348 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.656e-05/0.522, allocations: 19.69 kB / 481 MB, free: 7.332 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.86e-05/0.522, allocations: 16 kB / 481 MB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002191/0.5242, allocations: 0.7085 MB / 481.7 MB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002218/0.5265, allocations: 0.5731 MB / 482.3 MB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01106/0.5375, allocations: 10.89 MB / 493.2 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00278/0.5404, allocations: 107.9 kB / 493.3 MB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002188/0.5406, allocations: 100 kB / 493.4 MB, free: 10.46 MB / 398.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.003123/0.5437, allocations: 1.617 MB / 495 MB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007873/0.5445, allocations: 312.2 kB / 495.3 MB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006677/0.5512, allocations: 3.912 MB / 499.2 MB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.965e-05/0.5512, allocations: 28 kB / 499.2 MB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.559e-05/0.5513, allocations: 8 kB / 499.3 MB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-05/0.5513, allocations: 15.95 kB / 499.3 MB, free: 4.562 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01394/0.5652, allocations: 8.557 MB / 0.4959 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.5653, allocations: 4 kB / 0.4959 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001531/0.5668, allocations: 345.9 kB / 0.4963 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002708/0.5695, allocations: 0.8876 MB / 0.4971 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001876/0.5697, allocations: 59.97 kB / 0.4972 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01565/0.5854, allocations: 15.69 MB / 0.5125 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.5854, allocations: 4 kB / 0.5125 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009164/0.5946, allocations: 5.686 MB / 0.5181 GB, free: 4.48 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002083/0.5967, allocations: 0.6924 MB / 0.5187 GB, free: 3.766 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004942/0.5972, allocations: 55.98 kB / 0.5188 GB, free: 3.711 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001477/0.5987, allocations: 107.9 kB / 0.5189 GB, free: 3.605 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004886/0.5992, allocations: 189.4 kB / 0.5191 GB, free: 3.426 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001504/0.5994, allocations: 59.98 kB / 0.5191 GB, free: 3.367 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003143/0.6025, allocations: 2.062 MB / 0.5211 GB, free: 1.305 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6025, allocations: 0 / 0.5211 GB, free: 1.305 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003187/0.6057, allocations: 0.9479 MB / 0.5221 GB, free: 368 kB / 430.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.0006346/0.6064, allocations: 264.7 kB / 0.5223 GB, free: 116 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01015/0.6165, allocations: 5.374 MB / 0.5276 GB, free: 10.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/0.6166, allocations: 0 / 0.5276 GB, free: 10.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004045/0.6206, allocations: 2.638 MB / 0.5301 GB, free: 8.074 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004717/0.6254, allocations: 0.9081 MB / 0.531 GB, free: 7.164 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.201/0.8264, allocations: 9.513 MB / 0.5403 GB, free: 160.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003982/0.8305, allocations: 3.42 MB / 0.5437 GB, free: 159.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003201/0.8337, allocations: 0.7565 MB / 0.5444 GB, free: 159.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006194/0.8343, allocations: 201.7 kB / 0.5446 GB, free: 159.4 MB / 446.1 MB Notification: Performance of SimCode: time 9.41e-07/0.8343, allocations: 3.609 kB / 0.5446 GB, free: 159.4 MB / 446.1 MB Notification: Performance of Templates: time 0.07847/0.9128, allocations: 51.03 MB / 0.5944 GB, free: 120.2 MB / 446.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)