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.005672/0.005672, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001295/0.001295, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.391/1.391, allocations: 205.1 MB / 222.6 MB, free: 4.48 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.00114/0.00114, allocations: 49.92 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08628/0.08743, allocations: 46.63 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL): time 0.01982/0.1073, allocations: 19.47 MB / 392.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01223/0.1196, allocations: 5.686 MB / 398.3 MB, free: 8.039 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003516/0.1232, allocations: 111.5 kB / 398.5 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004007/0.1272, allocations: 1.296 MB / 399.8 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006143/0.1334, allocations: 1.895 MB / 401.6 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003528/0.1369, allocations: 1.177 MB / 402.8 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008931/0.1459, allocations: 6.437 MB / 409.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006148/0.152, allocations: 5.329 MB / 414.6 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004209/0.1563, allocations: 2.952 MB / 417.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005266/0.1616, allocations: 3.476 MB / 421 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001686/0.1633, allocations: 0.8008 MB / 421.8 MB, free: 412 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002539/0.1658, allocations: 1.07 MB / 422.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001787/0.1676, allocations: 1.979 MB / 424.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004956/0.1726, allocations: 3.435 MB / 428.3 MB, free: 9.898 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01294/0.1856, allocations: 10.64 MB / 438.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.1856, allocations: 0 / 438.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1856, allocations: 4 kB / 438.9 MB, free: 15.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003805/0.186, allocations: 0 / 438.9 MB, free: 15.22 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.01863/0.2047, allocations: 6.844 MB / 445.8 MB, free: 8.289 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.2047, allocations: 16.03 kB / 445.8 MB, free: 8.273 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005142/0.2099, allocations: 1.102 MB / 446.9 MB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0064/0.2163, allocations: 3.481 MB / 450.4 MB, free: 3.613 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004247/0.2168, allocations: 394.7 kB / 450.8 MB, free: 3.227 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009358/0.2177, allocations: 0.5078 MB / 451.3 MB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1865/0.4042, allocations: 6.945 MB / 458.2 MB, free: 62.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001994/0.4045, allocations: 11.48 kB / 458.2 MB, free: 62.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008539/0.4053, allocations: 211.1 kB / 458.4 MB, free: 62.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003422/0.4057, allocations: 239.8 kB / 458.7 MB, free: 62.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0133/0.419, allocations: 5.915 MB / 464.6 MB, free: 60.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03223/0.4513, allocations: 21.16 MB / 485.8 MB, free: 45.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006571/0.4579, allocations: 8.701 MB / 494.5 MB, free: 37.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003405/0.4613, allocations: 2.364 MB / 496.8 MB, free: 35.58 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009046/0.4704, allocations: 6.122 MB / 0.4912 GB, free: 29.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.4705, allocations: 56.5 kB / 0.4912 GB, free: 29.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 4.047e-06/0.4705, allocations: 0 / 0.4912 GB, free: 29.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=238): time 0.01958/0.4901, allocations: 11.37 MB / 0.5023 GB, free: 18.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.069e-05/0.4901, allocations: 77.41 kB / 0.5024 GB, free: 17.97 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003449/0.4936, allocations: 2.99 MB / 0.5053 GB, free: 14.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002094/0.4938, allocations: 69.7 kB / 0.5054 GB, free: 14.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001044/0.4949, allocations: 2.367 MB / 0.5077 GB, free: 12.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004755/0.4953, allocations: 0.8551 MB / 0.5085 GB, free: 11.85 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006769/0.496, allocations: 0.5061 MB / 0.509 GB, free: 11.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.727e-05/0.4961, allocations: 308.6 kB / 0.5093 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001689/0.4978, allocations: 1.36 MB / 0.5106 GB, free: 9.672 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001912/0.4997, allocations: 2.127 MB / 0.5127 GB, free: 7.211 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003828/0.5035, allocations: 3.694 MB / 0.5163 GB, free: 3.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-05/0.5036, allocations: 8 kB / 0.5163 GB, free: 3.152 MB / 382.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.006795/0.5104, allocations: 4.677 MB / 0.5209 GB, free: 14.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.108e-05/0.5104, allocations: 16 kB / 0.5209 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.816e-05/0.5104, allocations: 20.72 kB / 0.5209 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001829/0.5123, allocations: 0.7709 MB / 0.5217 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002416/0.5147, allocations: 0.6318 MB / 0.5223 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01362/0.5283, allocations: 14.54 MB / 0.5365 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002862/0.5312, allocations: 151.8 kB / 0.5366 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004162/0.5317, allocations: 124 kB / 0.5368 GB, free: 13.13 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.003378/0.5351, allocations: 1.594 MB / 0.5383 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008699/0.536, allocations: 341.8 kB / 0.5386 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007548/0.5435, allocations: 4.191 MB / 0.5427 GB, free: 6.914 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-05/0.5436, allocations: 20 kB / 0.5428 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-05/0.5436, allocations: 19.98 kB / 0.5428 GB, free: 6.875 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.352e-05/0.5436, allocations: 7.969 kB / 0.5428 GB, free: 6.867 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01613/0.5598, allocations: 9.124 MB / 0.5517 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.5598, allocations: 4 kB / 0.5517 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001631/0.5614, allocations: 379.9 kB / 0.5521 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002461/0.5639, allocations: 0.9329 MB / 0.553 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002099/0.5641, allocations: 67.97 kB / 0.553 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01767/0.5818, allocations: 18.02 MB / 0.5706 GB, free: 9.098 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.862e-06/0.5819, allocations: 12 kB / 0.5706 GB, free: 9.086 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009686/0.5916, allocations: 6.075 MB / 0.5766 GB, free: 2.887 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001522/0.5931, allocations: 0.7097 MB / 0.5773 GB, free: 2.156 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006917/0.5938, allocations: 55.98 kB / 0.5773 GB, free: 2.102 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00176/0.5956, allocations: 135.9 kB / 0.5775 GB, free: 1.969 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004663/0.5961, allocations: 193.6 kB / 0.5776 GB, free: 1.781 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001816/0.5962, allocations: 71.98 kB / 0.5777 GB, free: 1.711 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003354/0.5996, allocations: 2.037 MB / 0.5797 GB, free: 15.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5996, allocations: 0 / 0.5797 GB, free: 15.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003476/0.6031, allocations: 0.9804 MB / 0.5807 GB, free: 14.7 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.0005886/0.6037, allocations: 244.4 kB / 0.5809 GB, free: 14.45 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006794/0.6105, allocations: 4.587 MB / 0.5854 GB, free: 9.703 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.6105, allocations: 0.875 kB / 0.5854 GB, free: 9.703 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004564/0.6151, allocations: 3.061 MB / 0.5884 GB, free: 6.516 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004693/0.6198, allocations: 0.9075 MB / 0.5892 GB, free: 5.605 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01698/0.6368, allocations: 10.05 MB / 0.5991 GB, free: 11.47 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003079/0.6399, allocations: 3.431 MB / 0.6024 GB, free: 8.004 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002225/0.6422, allocations: 0.7659 MB / 0.6032 GB, free: 7.234 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005585/0.6427, allocations: 211.4 kB / 0.6034 GB, free: 7.031 MB / 478.1 MB Notification: Performance of SimCode: time 2.785e-06/0.6427, allocations: 4 kB / 0.6034 GB, free: 7.027 MB / 478.1 MB Notification: Performance of Templates: time 0.2719/0.9146, allocations: 49.23 MB / 0.6514 GB, free: 148.9 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)