Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.core.Phi.im|aimc.stator.core.Phi.re|aimc.stator.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.core.Phi.im|aimc.stator.core.Phi.re|aimc.stator.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_3.2.3_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.001301/0.001301, allocations: 107.2 kB / 18.4 MB, free: 4.625 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.00153/0.00153, allocations: 191.3 kB / 19.34 MB, free: 3.699 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.313/1.313, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001185/0.001185, allocations: 43.94 kB / 329.3 MB, free: 3.254 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07616/0.07735, allocations: 46.61 MB / 375.9 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.1671/0.2445, allocations: 13.57 MB / 389.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008107/0.2526, allocations: 4.873 MB / 394.3 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0021/0.2548, allocations: 67.59 kB / 394.4 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002891/0.2577, allocations: 1.039 MB / 395.4 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004063/0.2618, allocations: 1.392 MB / 396.8 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002452/0.2643, allocations: 0.9726 MB / 397.8 MB, free: 208 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005573/0.2698, allocations: 4.33 MB / 402.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003626/0.2735, allocations: 3.297 MB / 405.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00291/0.2764, allocations: 2.003 MB / 407.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003438/0.2799, allocations: 2.265 MB / 409.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007302/0.2806, allocations: 0.5333 MB / 410.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001893/0.2825, allocations: 0.9114 MB / 411.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001157/0.2837, allocations: 1.366 MB / 412.5 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002307/0.286, allocations: 2.348 MB / 414.8 MB, free: 7.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006819/0.2928, allocations: 7.341 MB / 422.2 MB, free: 1.246 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.2929, allocations: 0 / 422.2 MB, free: 1.246 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2929, allocations: 0 / 422.2 MB, free: 1.246 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001519/0.293, allocations: 0 / 422.2 MB, free: 1.246 MB / 334.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.01141/0.3044, allocations: 4.977 MB / 427.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.3045, allocations: 12.02 kB / 427.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004345/0.3088, allocations: 0.8741 MB / 428 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004301/0.3132, allocations: 2.619 MB / 430.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001714/0.3133, allocations: 258.6 kB / 430.9 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004935/0.3138, allocations: 335.9 kB / 431.2 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007429/0.3213, allocations: 4.535 MB / 435.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-05/0.3214, allocations: 15.89 kB / 435.8 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003138/0.3217, allocations: 140 kB / 435.9 MB, free: 3.285 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001476/0.3218, allocations: 150.7 kB / 436.1 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006526/0.3284, allocations: 3.907 MB / 440 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02029/0.3487, allocations: 14.01 MB / 454 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007272/0.356, allocations: 6.974 MB / 461 MB, free: 9.141 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002906/0.3589, allocations: 1.72 MB / 462.7 MB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007037/0.366, allocations: 4.237 MB / 466.9 MB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.366, allocations: 59.86 kB / 467 MB, free: 3.023 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 3.487e-06/0.366, allocations: 0 / 467 MB, free: 3.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=185): time 0.01648/0.3825, allocations: 7.827 MB / 474.8 MB, free: 11.06 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.3826, allocations: 69.41 kB / 474.9 MB, free: 10.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003421/0.386, allocations: 2.631 MB / 477.5 MB, free: 8.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001148/0.3861, allocations: 57.7 kB / 477.6 MB, free: 8.258 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001044/0.3872, allocations: 1.607 MB / 479.2 MB, free: 6.629 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004546/0.3877, allocations: 0.6237 MB / 479.8 MB, free: 5.996 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005437/0.3882, allocations: 335.4 kB / 480.1 MB, free: 5.664 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.649e-05/0.3883, allocations: 313.1 kB / 480.4 MB, free: 5.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001545/0.3898, allocations: 0.9019 MB / 481.3 MB, free: 4.453 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001793/0.3917, allocations: 1.302 MB / 482.6 MB, free: 3 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003487/0.3952, allocations: 2.355 MB / 485 MB, free: 0.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.3952, allocations: 0 / 485 MB, free: 0.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.00538/0.4006, allocations: 3.065 MB / 488 MB, free: 13.42 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.4006, allocations: 12 kB / 488.1 MB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.4006, allocations: 11.94 kB / 488.1 MB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001463/0.4021, allocations: 0.5558 MB / 488.6 MB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001799/0.4039, allocations: 439.3 kB / 489.1 MB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009117/0.413, allocations: 7.579 MB / 496.6 MB, free: 4.547 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001604/0.4146, allocations: 84 kB / 496.7 MB, free: 4.465 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001557/0.4148, allocations: 79.98 kB / 496.8 MB, free: 4.387 MB / 414.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.001879/0.4167, allocations: 1.157 MB / 497.9 MB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004145/0.4171, allocations: 256.8 kB / 498.2 MB, free: 2.965 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005194/0.4223, allocations: 2.878 MB / 0.4893 GB, free: 64 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.857e-05/0.4224, allocations: 15.95 kB / 0.4893 GB, free: 48 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.4224, allocations: 0 / 0.4893 GB, free: 48 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009237/0.4233, allocations: 0.5408 MB / 0.4899 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003046/0.4236, allocations: 36 kB / 0.4899 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.4247, allocations: 75.88 kB / 0.49 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002824/0.425, allocations: 165.7 kB / 0.4901 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006633/0.4316, allocations: 3.042 MB / 0.4931 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005667/0.4373, allocations: 3.617 MB / 0.4966 GB, free: 8.516 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001574/0.4389, allocations: 1.042 MB / 0.4977 GB, free: 7.473 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00269/0.4416, allocations: 1.839 MB / 0.4995 GB, free: 5.621 MB / 430.1 MB Notification: Performance of Backend: time 3.31e-07/0.4416, allocations: 7.938 kB / 0.4995 GB, free: 5.613 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005884/0.4475, allocations: 2.592 MB / 0.502 GB, free: 2.988 MB / 430.1 MB Notification: Performance of SimCode: time 0.01111/0.4587, allocations: 7.534 MB / 0.5094 GB, free: 11.39 MB / 446.1 MB Notification: Performance of Templates: time 0.06522/0.5239, allocations: 41.49 MB / 0.5499 GB, free: 1.812 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1)