Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.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_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001486/0.001485, allocations: 97.33 kB / 16.5 MB, free: 6.641 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.00164/0.00164, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.54/1.54, allocations: 205.1 MB / 223.3 MB, free: 12.45 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.001299/0.001299, allocations: 55.91 kB / 279.3 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08663/0.08794, allocations: 46.63 MB / 326 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01633/0.1043, allocations: 13.42 MB / 339.4 MB, free: 7.387 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01039/0.1147, allocations: 4.83 MB / 344.2 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00243/0.1173, allocations: 63.75 kB / 344.3 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003434/0.1207, allocations: 0.8901 MB / 345.2 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004543/0.1253, allocations: 1.271 MB / 346.4 MB, free: 316 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002631/0.1279, allocations: 0.8967 MB / 347.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005906/0.1338, allocations: 4.632 MB / 352 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004008/0.1379, allocations: 2.73 MB / 354.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002747/0.1406, allocations: 1.607 MB / 356.3 MB, free: 6.348 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003563/0.1442, allocations: 2.148 MB / 358.5 MB, free: 4.191 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001155/0.1454, allocations: 316 kB / 358.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002453/0.1479, allocations: 0.6869 MB / 359.5 MB, free: 3.195 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001558/0.1494, allocations: 1.086 MB / 360.5 MB, free: 2.105 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003259/0.1527, allocations: 2.091 MB / 362.6 MB, free: 4 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007352/0.1601, allocations: 7.107 MB / 369.7 MB, free: 8.875 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.1601, allocations: 0 / 369.7 MB, free: 8.875 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1601, allocations: 3.938 kB / 369.7 MB, free: 8.871 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002318/0.1604, allocations: 0 / 369.7 MB, free: 8.871 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01471/0.1751, allocations: 4.969 MB / 374.7 MB, free: 3.824 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.15e-05/0.1752, allocations: 8.031 kB / 374.7 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004605/0.1798, allocations: 0.878 MB / 375.6 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004648/0.1845, allocations: 2.561 MB / 378.2 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001856/0.1847, allocations: 254.6 kB / 378.4 MB, free: 48 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1548/0.3395, allocations: 331.1 kB / 378.7 MB, free: 49.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008542/0.3481, allocations: 4.542 MB / 383.3 MB, free: 47.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.944e-05/0.3482, allocations: 3.938 kB / 383.3 MB, free: 47.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002921/0.3485, allocations: 140.3 kB / 383.4 MB, free: 47.42 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001674/0.3486, allocations: 156.4 kB / 383.6 MB, free: 47.4 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007845/0.3565, allocations: 3.905 MB / 387.5 MB, free: 45.9 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02048/0.377, allocations: 14.19 MB / 401.7 MB, free: 36.67 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005585/0.3826, allocations: 6.968 MB / 408.6 MB, free: 30.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002434/0.3851, allocations: 1.692 MB / 410.3 MB, free: 28.85 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006399/0.3915, allocations: 4.252 MB / 414.6 MB, free: 24.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.3916, allocations: 54.17 kB / 414.6 MB, free: 24.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=165): time 3.586e-06/0.3916, allocations: 0 / 414.6 MB, free: 24.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.01539/0.407, allocations: 7.823 MB / 422.4 MB, free: 16.56 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.4071, allocations: 79.38 kB / 422.5 MB, free: 16.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004123/0.4112, allocations: 2.62 MB / 425.1 MB, free: 13.83 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002307/0.4115, allocations: 57.7 kB / 425.2 MB, free: 13.77 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008774/0.4123, allocations: 1.615 MB / 426.8 MB, free: 12.14 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005978/0.413, allocations: 0.6229 MB / 427.4 MB, free: 11.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006699/0.4136, allocations: 331.4 kB / 427.8 MB, free: 11.19 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.26e-05/0.4137, allocations: 305.1 kB / 428.1 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/0.4152, allocations: 0.9097 MB / 429 MB, free: 9.977 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001592/0.4168, allocations: 1.313 MB / 430.3 MB, free: 8.516 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003042/0.4199, allocations: 2.348 MB / 432.6 MB, free: 6.023 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/0.4199, allocations: 4 kB / 432.6 MB, free: 6.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004942/0.4248, allocations: 3.069 MB / 435.7 MB, free: 2.934 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.089e-05/0.4249, allocations: 8 kB / 435.7 MB, free: 2.926 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.326e-05/0.4249, allocations: 12 kB / 435.7 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00148/0.4264, allocations: 0.5597 MB / 436.3 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00183/0.4283, allocations: 431.3 kB / 436.7 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009035/0.4373, allocations: 6.945 MB / 443.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001807/0.4392, allocations: 87.94 kB / 443.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003351/0.4395, allocations: 79.36 kB / 443.8 MB, free: 10.57 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (8,33,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002337/0.4419, allocations: 1.161 MB / 445 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007515/0.4426, allocations: 252.9 kB / 445.2 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005977/0.4486, allocations: 2.885 MB / 448.1 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-05/0.4487, allocations: 24 kB / 448.1 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.412e-05/0.4487, allocations: 16 kB / 448.1 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/0.4487, allocations: 11.91 kB / 448.2 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01218/0.4609, allocations: 6.325 MB / 454.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.394e-05/0.461, allocations: 4 kB / 454.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001406/0.4624, allocations: 275.6 kB / 454.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001779/0.4642, allocations: 0.6209 MB / 455.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002418/0.4645, allocations: 55.97 kB / 455.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01232/0.4768, allocations: 10.49 MB / 465.9 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.4768, allocations: 0 / 465.9 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007934/0.4848, allocations: 4.151 MB / 470.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/0.4863, allocations: 0.5447 MB / 470.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006881/0.487, allocations: 36 kB / 470.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/0.4884, allocations: 87.92 kB / 470.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003708/0.4888, allocations: 137.7 kB / 470.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001478/0.489, allocations: 51.98 kB / 470.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003256/0.4922, allocations: 1.842 MB / 472.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4922, allocations: 0 / 472.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002787/0.495, allocations: 0.698 MB / 473.5 MB, free: 12.24 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001159/0.4962, allocations: 435.3 kB / 473.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005454/0.5017, allocations: 2.842 MB / 476.7 MB, free: 8.973 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.503e-06/0.5017, allocations: 4.375 kB / 476.7 MB, free: 8.969 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00334/0.5051, allocations: 1.933 MB / 478.7 MB, free: 6.988 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004182/0.5093, allocations: 0.5504 MB / 479.2 MB, free: 6.434 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01598/0.5253, allocations: 8.625 MB / 487.8 MB, free: 13.78 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003745/0.529, allocations: 2.626 MB / 490.5 MB, free: 11.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002718/0.5318, allocations: 0.4967 MB / 491 MB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007836/0.5326, allocations: 171.4 kB / 491.1 MB, free: 10.46 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5326, allocations: 3.938 kB / 491.1 MB, free: 10.45 MB / 382.1 MB Notification: Performance of Templates: time 0.05944/0.5921, allocations: 35.77 MB / 0.5145 GB, free: 6.621 MB / 414.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1)