Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.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_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009806/0.009806, allocations: 104.8 kB / 15.74 MB, free: 6.039 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.002162/0.002162, allocations: 191.5 kB / 16.67 MB, free: 5.973 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.414/1.414, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.001162/0.001162, allocations: 51.25 kB / 326.6 MB, free: 14.52 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08316/0.08433, allocations: 46.62 MB / 373.2 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL): time 0.02198/0.1064, allocations: 19.47 MB / 392.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01309/0.1195, allocations: 5.694 MB / 398.4 MB, free: 8.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003858/0.1235, allocations: 103.6 kB / 398.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003584/0.1271, allocations: 1.343 MB / 399.8 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006015/0.1331, allocations: 1.981 MB / 401.8 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003053/0.1362, allocations: 1.177 MB / 403 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008653/0.1448, allocations: 6.429 MB / 409.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00646/0.1513, allocations: 5.329 MB / 414.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004366/0.1557, allocations: 2.983 MB / 417.7 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005032/0.1608, allocations: 3.472 MB / 421.2 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002214/0.163, allocations: 0.8008 MB / 422 MB, free: 384 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003268/0.1663, allocations: 1.074 MB / 423 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002434/0.1688, allocations: 1.975 MB / 425 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006055/0.1748, allocations: 3.435 MB / 428.5 MB, free: 9.871 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01249/0.1874, allocations: 10.61 MB / 439.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/0.1874, allocations: 0 / 439.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1874, allocations: 0 / 439.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003011/0.1877, allocations: 0 / 439.1 MB, free: 15.23 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.01912/0.2069, allocations: 6.699 MB / 445.8 MB, free: 8.449 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.2069, allocations: 12.03 kB / 445.8 MB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006112/0.213, allocations: 1.071 MB / 446.8 MB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007804/0.2209, allocations: 3.459 MB / 450.3 MB, free: 3.824 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003634/0.2213, allocations: 390.7 kB / 450.7 MB, free: 3.441 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001375/0.2227, allocations: 0.5117 MB / 451.2 MB, free: 2.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1974/0.4201, allocations: 6.944 MB / 458.1 MB, free: 62.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001317/0.4203, allocations: 13.61 kB / 458.2 MB, free: 62.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004731/0.4208, allocations: 209.8 kB / 458.4 MB, free: 62.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002489/0.421, allocations: 237.9 kB / 458.6 MB, free: 62.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01195/0.433, allocations: 5.919 MB / 464.5 MB, free: 60.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03129/0.4643, allocations: 21.1 MB / 485.6 MB, free: 45.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006424/0.4708, allocations: 8.707 MB / 494.3 MB, free: 37.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003178/0.474, allocations: 2.372 MB / 496.7 MB, free: 35.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008702/0.4827, allocations: 6.098 MB / 0.491 GB, free: 29.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/0.4828, allocations: 60.5 kB / 0.4911 GB, free: 29.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 3.907e-06/0.4828, allocations: 4 kB / 0.4911 GB, free: 29.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=238): time 0.0195/0.5023, allocations: 11.29 MB / 0.5021 GB, free: 18.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.047e-05/0.5024, allocations: 81.41 kB / 0.5022 GB, free: 18.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00352/0.5059, allocations: 2.986 MB / 0.5051 GB, free: 15.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002507/0.5062, allocations: 65.7 kB / 0.5051 GB, free: 15 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009428/0.5071, allocations: 2.307 MB / 0.5074 GB, free: 12.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004868/0.5076, allocations: 0.8151 MB / 0.5082 GB, free: 11.87 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007051/0.5083, allocations: 0.502 MB / 0.5087 GB, free: 11.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.829e-05/0.5084, allocations: 301.1 kB / 0.509 GB, free: 11.06 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001749/0.5101, allocations: 1.356 MB / 0.5103 GB, free: 9.699 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00212/0.5123, allocations: 2.134 MB / 0.5124 GB, free: 7.234 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004035/0.5163, allocations: 3.698 MB / 0.516 GB, free: 3.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-05/0.5164, allocations: 8 kB / 0.516 GB, free: 3.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.007122/0.5235, allocations: 4.66 MB / 0.5205 GB, free: 14.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.418e-05/0.5235, allocations: 16 kB / 0.5206 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.741e-05/0.5236, allocations: 24 kB / 0.5206 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001847/0.5254, allocations: 0.7721 MB / 0.5213 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002358/0.5278, allocations: 0.6279 MB / 0.522 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01316/0.541, allocations: 14.53 MB / 0.5361 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002676/0.5437, allocations: 155.8 kB / 0.5363 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002635/0.544, allocations: 120.1 kB / 0.5364 GB, free: 13.2 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * Number of states: 0 () * Number of discrete variables: 3 (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 (324): * Single equations (assignments): 314 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (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): 7 systems {(1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002764/0.5467, allocations: 1.598 MB / 0.538 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006335/0.5474, allocations: 324.1 kB / 0.5383 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006969/0.5544, allocations: 4.191 MB / 0.5424 GB, free: 6.988 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.719e-05/0.5544, allocations: 24 kB / 0.5424 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.635e-05/0.5544, allocations: 8 kB / 0.5424 GB, free: 6.957 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.388e-05/0.5545, allocations: 11.95 kB / 0.5424 GB, free: 6.945 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01411/0.5686, allocations: 9.136 MB / 0.5513 GB, free: 13.69 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.211e-05/0.5686, allocations: 4 kB / 0.5513 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001713/0.5703, allocations: 375.4 kB / 0.5517 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002514/0.5729, allocations: 0.934 MB / 0.5526 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002163/0.5731, allocations: 63.97 kB / 0.5527 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0171/0.5902, allocations: 18 MB / 0.5702 GB, free: 9.211 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.5902, allocations: 7.938 kB / 0.5703 GB, free: 9.203 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009628/0.5999, allocations: 6.06 MB / 0.5762 GB, free: 3.02 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002076/0.602, allocations: 0.6924 MB / 0.5768 GB, free: 2.305 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005556/0.6026, allocations: 63.98 kB / 0.5769 GB, free: 2.242 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001628/0.6042, allocations: 127.9 kB / 0.577 GB, free: 2.117 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005478/0.6048, allocations: 201.6 kB / 0.5772 GB, free: 1.922 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001525/0.6049, allocations: 67.98 kB / 0.5773 GB, free: 1.855 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003091/0.608, allocations: 2.037 MB / 0.5793 GB, free: 15.82 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.608, allocations: 4 kB / 0.5793 GB, free: 15.82 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003413/0.6115, allocations: 0.9713 MB / 0.5802 GB, free: 14.85 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.zeroInductor.i0,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 8 * 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): 8 systems {(2,12,100.0%), (1,1,100.0%), (1,8,100.0%), (2,1,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.0005413/0.612, allocations: 251.1 kB / 0.5805 GB, free: 14.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006584/0.6186, allocations: 4.585 MB / 0.5849 GB, free: 9.859 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.6186, allocations: 4 kB / 0.5849 GB, free: 9.855 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004326/0.623, allocations: 3.052 MB / 0.5879 GB, free: 6.68 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003982/0.627, allocations: 0.9039 MB / 0.5888 GB, free: 5.773 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01598/0.643, allocations: 9.896 MB / 0.5985 GB, free: 11.82 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003382/0.6464, allocations: 3.43 MB / 0.6018 GB, free: 8.355 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002402/0.6488, allocations: 0.7698 MB / 0.6026 GB, free: 7.582 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006129/0.6494, allocations: 207.4 kB / 0.6028 GB, free: 7.383 MB / 478.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6494, allocations: 3.938 kB / 0.6028 GB, free: 7.379 MB / 478.1 MB Notification: Performance of Templates: time 0.2587/0.9082, allocations: 49.23 MB / 0.6509 GB, free: 149.3 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe 2>&1)