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.001325/0.001326, allocations: 94.86 kB / 16.3 MB, free: 5.992 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.001473/0.001473, allocations: 178.8 kB / 17.2 MB, free: 5.906 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.564/1.564, allocations: 205.4 MB / 223.4 MB, free: 5.559 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.0007135/0.0007136, allocations: 8 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2448, allocations: 47.58 MB / 327.7 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.0117/0.2565, allocations: 10.96 MB / 338.7 MB, free: 8.523 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009053/0.2656, allocations: 4.608 MB / 343.3 MB, free: 3.906 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002211/0.2679, allocations: 67.69 kB / 343.3 MB, free: 3.84 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002239/0.2701, allocations: 0.7968 MB / 344.1 MB, free: 3.039 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003837/0.274, allocations: 1.207 MB / 345.3 MB, free: 1.828 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002048/0.276, allocations: 0.6782 MB / 346 MB, free: 1.148 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006055/0.2821, allocations: 2.952 MB / 349 MB, free: 14.19 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00306/0.2852, allocations: 2.262 MB / 351.2 MB, free: 11.89 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002175/0.2874, allocations: 1.347 MB / 352.6 MB, free: 10.54 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002385/0.2898, allocations: 1.619 MB / 354.2 MB, free: 8.914 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005274/0.2903, allocations: 220 kB / 354.4 MB, free: 8.699 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001502/0.2918, allocations: 0.519 MB / 354.9 MB, free: 8.18 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009199/0.2928, allocations: 0.9385 MB / 355.9 MB, free: 7.238 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000971/0.2937, allocations: 0.8082 MB / 356.7 MB, free: 6.422 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006199/0.3, allocations: 5.906 MB / 362.6 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.3, allocations: 0 / 362.6 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3, allocations: 4 kB / 362.6 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001728/0.3002, allocations: 0 / 362.6 MB, free: 0.4961 MB / 286.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.01065/0.3108, allocations: 4.252 MB / 366.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.3109, allocations: 8.031 kB / 366.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00448/0.3154, allocations: 0.8809 MB / 367.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004977/0.3204, allocations: 2.499 MB / 370.2 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002247/0.3206, allocations: 250.7 kB / 370.5 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006113/0.3212, allocations: 335.9 kB / 370.8 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00794/0.3292, allocations: 4.5 MB / 375.3 MB, free: 3.578 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-05/0.3293, allocations: 0 / 375.3 MB, free: 3.578 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003247/0.3296, allocations: 144 kB / 375.4 MB, free: 3.438 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001519/0.3298, allocations: 154.7 kB / 375.6 MB, free: 3.285 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007047/0.3368, allocations: 3.887 MB / 379.5 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02264/0.3595, allocations: 14.19 MB / 393.7 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007646/0.3672, allocations: 6.944 MB / 400.6 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006772/0.374, allocations: 3.641 MB / 404.3 MB, free: 5.434 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.845e-05/0.374, allocations: 48.56 kB / 404.3 MB, free: 5.379 MB / 334.1 MB Notification: Performance of pre-optimization done (n=169): time 3.046e-06/0.3741, allocations: 0 / 404.3 MB, free: 5.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=189): time 0.01646/0.3905, allocations: 8.063 MB / 412.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.861e-05/0.3906, allocations: 81.41 kB / 412.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003545/0.3942, allocations: 2.561 MB / 415 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002394/0.3944, allocations: 57.7 kB / 415.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001167/0.3956, allocations: 1.599 MB / 416.7 MB, free: 8.785 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005965/0.3962, allocations: 0.6392 MB / 417.3 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.3963, allocations: 40 kB / 417.3 MB, free: 8.098 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.3965, allocations: 381.9 kB / 417.7 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00158/0.3981, allocations: 0.9019 MB / 418.6 MB, free: 6.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001846/0.4, allocations: 1.288 MB / 419.9 MB, free: 5.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001809/0.4018, allocations: 1.126 MB / 421 MB, free: 4.258 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/0.4018, allocations: 4 kB / 421 MB, free: 4.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.005712/0.4075, allocations: 3.065 MB / 424.1 MB, free: 1.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.16e-05/0.4076, allocations: 8.25 kB / 424.1 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.713e-05/0.4076, allocations: 15.98 kB / 424.1 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00147/0.4091, allocations: 0.5477 MB / 424.7 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001923/0.411, allocations: 443.3 kB / 425.1 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009755/0.4208, allocations: 7.226 MB / 432.3 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001912/0.4228, allocations: 96 kB / 432.4 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001754/0.423, allocations: 72.06 kB / 432.5 MB, free: 8.504 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (199): * Single equations (assignments): 195 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(7,63.3%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002332/0.4253, allocations: 1.161 MB / 433.6 MB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005398/0.4258, allocations: 256.8 kB / 433.9 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005688/0.4315, allocations: 2.917 MB / 436.8 MB, free: 4.133 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.305e-05/0.4316, allocations: 16 kB / 436.8 MB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.519e-05/0.4316, allocations: 12 kB / 436.8 MB, free: 4.105 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.037e-05/0.4317, allocations: 7.969 kB / 436.9 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01224/0.4439, allocations: 6.323 MB / 443.2 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.528e-05/0.444, allocations: 8 kB / 443.2 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001435/0.4454, allocations: 295.7 kB / 443.5 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001619/0.4471, allocations: 0.6084 MB / 444.1 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001663/0.4472, allocations: 47.97 kB / 444.1 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01261/0.4598, allocations: 10.77 MB / 454.9 MB, free: 1.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.4599, allocations: 8.094 kB / 454.9 MB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.173/0.6329, allocations: 4.231 MB / 459.1 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001358/0.6343, allocations: 0.5435 MB / 459.7 MB, free: 107.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000406/0.6348, allocations: 36.25 kB / 459.7 MB, free: 107.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.6359, allocations: 94.39 kB / 459.8 MB, free: 107.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003293/0.6363, allocations: 139 kB / 459.9 MB, free: 107.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001216/0.6364, allocations: 50.95 kB / 460 MB, free: 107.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002434/0.6388, allocations: 1.8 MB / 461.8 MB, free: 106.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6388, allocations: 5.469 kB / 461.8 MB, free: 106.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00256/0.6414, allocations: 0.6877 MB / 462.5 MB, free: 106.8 MB / 382.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 (129): * Single equations (assignments): 123 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 6,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00101/0.6424, allocations: 442.5 kB / 462.9 MB, free: 106.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004495/0.6469, allocations: 2.837 MB / 465.8 MB, free: 105.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.647, allocations: 3.938 kB / 465.8 MB, free: 105.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002685/0.6497, allocations: 1.969 MB / 467.7 MB, free: 104.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002304/0.652, allocations: 0.5337 MB / 468.3 MB, free: 104.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01061/0.6626, allocations: 8.363 MB / 476.6 MB, free: 99.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002272/0.6649, allocations: 2.701 MB / 479.3 MB, free: 97.14 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00183/0.6668, allocations: 0.4929 MB / 479.8 MB, free: 96.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004193/0.6672, allocations: 171.4 kB / 480 MB, free: 96.48 MB / 382.1 MB Notification: Performance of SimCode: time 9.91e-07/0.6672, allocations: 0 / 480 MB, free: 96.48 MB / 382.1 MB Notification: Performance of Templates: time 0.04833/0.7156, allocations: 33.67 MB / 0.5016 GB, free: 62.77 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: