Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 115 kB / 16.63 MB, free: 6.812 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: 186 kB / 17.55 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.298/1.298, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001237/0.001238, allocations: 55.92 kB / 279.5 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1136, allocations: 46.63 MB / 326.1 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.0203/0.134, allocations: 13.52 MB / 339.7 MB, free: 7.195 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01159/0.1456, allocations: 4.432 MB / 344.1 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00264/0.1484, allocations: 71.69 kB / 344.2 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004081/0.1525, allocations: 0.9173 MB / 345.1 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006428/0.1589, allocations: 1.232 MB / 346.3 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003107/0.162, allocations: 0.85 MB / 347.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008388/0.1705, allocations: 4.877 MB / 352 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005786/0.1763, allocations: 3.644 MB / 355.7 MB, free: 7.055 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003682/0.18, allocations: 2.079 MB / 357.8 MB, free: 4.969 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004597/0.1846, allocations: 2.452 MB / 360.2 MB, free: 2.508 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001328/0.186, allocations: 0.5859 MB / 360.8 MB, free: 1.922 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002156/0.1881, allocations: 0.7966 MB / 361.6 MB, free: 1.125 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00152/0.1897, allocations: 1.328 MB / 362.9 MB, free: 15.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004519/0.1942, allocations: 2.462 MB / 365.4 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01026/0.2045, allocations: 7.685 MB / 373.1 MB, free: 5.613 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.2045, allocations: 0 / 373.1 MB, free: 5.613 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.2045, allocations: 0 / 373.1 MB, free: 5.613 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001939/0.2047, allocations: 3.938 kB / 373.1 MB, free: 5.609 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01847/0.2232, allocations: 5.028 MB / 378.1 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.2233, allocations: 8.031 kB / 378.1 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1972/0.4205, allocations: 0.8737 MB / 379 MB, free: 48.96 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006038/0.4266, allocations: 2.588 MB / 381.6 MB, free: 48.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003631/0.427, allocations: 268.9 kB / 381.8 MB, free: 47.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001113/0.4281, allocations: 366.5 kB / 382.2 MB, free: 47.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01095/0.4391, allocations: 5.034 MB / 387.2 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.759e-05/0.4392, allocations: 5.734 kB / 387.2 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003412/0.4396, allocations: 154.9 kB / 387.4 MB, free: 45.67 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001952/0.4398, allocations: 158.5 kB / 387.5 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00789/0.4477, allocations: 4.377 MB / 391.9 MB, free: 43.97 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02162/0.4693, allocations: 15.91 MB / 407.8 MB, free: 31.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005451/0.4748, allocations: 7.778 MB / 415.6 MB, free: 23.1 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002059/0.4769, allocations: 1.724 MB / 417.3 MB, free: 21.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006582/0.4835, allocations: 4.658 MB / 422 MB, free: 16.69 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.4836, allocations: 51.88 kB / 422 MB, free: 16.63 MB / 318.1 MB Notification: Performance of pre-optimization done (n=161): time 3.637e-06/0.4836, allocations: 0 / 422 MB, free: 16.63 MB / 318.1 MB Notification: Performance of matching and sorting (n=164): time 0.01453/0.4981, allocations: 8.126 MB / 430.2 MB, free: 8.285 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.4982, allocations: 76.7 kB / 430.2 MB, free: 8.195 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002752/0.501, allocations: 2.159 MB / 432.4 MB, free: 6 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001247/0.5011, allocations: 49.7 kB / 432.5 MB, free: 5.945 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007392/0.5019, allocations: 1.615 MB / 434.1 MB, free: 4.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002944/0.5022, allocations: 0.5536 MB / 434.6 MB, free: 3.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004617/0.5026, allocations: 359.2 kB / 435 MB, free: 3.414 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.276e-05/0.5027, allocations: 301.1 kB / 435.3 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.5039, allocations: 0.9447 MB / 436.2 MB, free: 2.172 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.5052, allocations: 1.453 MB / 437.7 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003255/0.5085, allocations: 2.503 MB / 440.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.18e-05/0.5085, allocations: 7.828 kB / 440.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.00558/0.5141, allocations: 3.351 MB / 443.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.014e-05/0.5142, allocations: 16.41 kB / 443.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.278e-05/0.5142, allocations: 20 kB / 443.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001789/0.516, allocations: 0.739 MB / 444.3 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/0.5175, allocations: 379.4 kB / 444.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01172/0.5292, allocations: 11.35 MB / 456 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002102/0.5313, allocations: 87.86 kB / 456.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001533/0.5315, allocations: 75.98 kB / 456.2 MB, free: 13.18 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[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 (195): * Single equations (assignments): 190 * 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 {(1,8,100.0%), (9,19,33.3%), (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.002276/0.5338, allocations: 1.222 MB / 457.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000441/0.5342, allocations: 225.3 kB / 457.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005318/0.5396, allocations: 3.162 MB / 460.8 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/0.5396, allocations: 16 kB / 460.8 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/0.5396, allocations: 8 kB / 460.8 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.618e-05/0.5396, allocations: 7.969 kB / 460.8 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01027/0.5499, allocations: 6.57 MB / 467.4 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.286e-06/0.55, allocations: 4.188 kB / 467.4 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008096/0.5508, allocations: 175.8 kB / 467.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00216/0.5529, allocations: 0.9249 MB / 468.5 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001184/0.5531, allocations: 47.97 kB / 468.5 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01624/0.5693, allocations: 16.17 MB / 484.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5694, allocations: 0 / 484.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007094/0.5765, allocations: 4.511 MB / 489.2 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001226/0.5777, allocations: 0.5217 MB / 489.7 MB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003118/0.578, allocations: 36 kB / 489.8 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009958/0.579, allocations: 79.94 kB / 489.9 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004466/0.5795, allocations: 164.9 kB / 490 MB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-05/0.5796, allocations: 43.98 kB / 490.1 MB, free: 10.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002168/0.5818, allocations: 1.485 MB / 491.5 MB, free: 8.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5818, allocations: 0 / 491.5 MB, free: 8.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002807/0.5846, allocations: 0.7031 MB / 492.2 MB, free: 7.977 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * 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,1,100.0%), (1,8,100.0%), (9,19,33.3%), (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.0003938/0.585, allocations: 177.6 kB / 492.4 MB, free: 7.801 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006689/0.5917, allocations: 3.711 MB / 496.1 MB, free: 4.035 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.5917, allocations: 0.9375 kB / 496.1 MB, free: 4.035 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003297/0.595, allocations: 2.269 MB / 498.4 MB, free: 1.688 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002946/0.598, allocations: 0.6347 MB / 499 MB, free: 1.051 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01243/0.6105, allocations: 8.41 MB / 0.4956 GB, free: 8.602 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002395/0.6129, allocations: 2.674 MB / 0.4982 GB, free: 5.898 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00181/0.6147, allocations: 479.4 kB / 0.4986 GB, free: 5.426 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003877/0.6151, allocations: 143.3 kB / 0.4988 GB, free: 5.285 MB / 398.1 MB Notification: Performance of SimCode: time 8.62e-07/0.6151, allocations: 0 / 0.4988 GB, free: 5.285 MB / 398.1 MB Notification: Performance of Templates: time 0.223/0.8381, allocations: 38.21 MB / 0.5361 GB, free: 144.9 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)