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.00152/0.00152, allocations: 111.2 kB / 18.41 MB, free: 4.688 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.001649/0.001649, allocations: 191.3 kB / 19.35 MB, free: 3.762 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.259/1.259, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.002106/0.002106, allocations: 47.88 kB / 329.3 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1046, allocations: 46.61 MB / 375.9 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.1599/0.2646, allocations: 13.57 MB / 389.4 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007656/0.2722, allocations: 4.863 MB / 394.3 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002049/0.2744, allocations: 72.34 kB / 394.4 MB, free: 2.273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002876/0.2772, allocations: 1.08 MB / 395.5 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003924/0.2812, allocations: 1.443 MB / 396.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002121/0.2833, allocations: 0.9715 MB / 397.9 MB, free: 152 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004923/0.2883, allocations: 4.324 MB / 402.2 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003475/0.2918, allocations: 3.296 MB / 405.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002726/0.2945, allocations: 2.016 MB / 407.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002813/0.2973, allocations: 2.274 MB / 409.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006951/0.298, allocations: 0.5338 MB / 410.3 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001777/0.2998, allocations: 0.9106 MB / 411.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001142/0.301, allocations: 1.366 MB / 412.6 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002218/0.3032, allocations: 2.349 MB / 414.9 MB, free: 7.441 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006996/0.3102, allocations: 7.358 MB / 422.3 MB, free: 1.152 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.3102, allocations: 0 / 422.3 MB, free: 1.152 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3102, allocations: 0 / 422.3 MB, free: 1.152 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.296e-05/0.3103, allocations: 4 kB / 422.3 MB, free: 1.148 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.01051/0.3208, allocations: 5.09 MB / 427.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.3209, allocations: 19.95 kB / 427.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004383/0.3253, allocations: 0.8882 MB / 428.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004231/0.3295, allocations: 2.641 MB / 430.9 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001902/0.3297, allocations: 258.6 kB / 431.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005381/0.3303, allocations: 335.9 kB / 431.5 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007636/0.3379, allocations: 4.547 MB / 436.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.451e-05/0.338, allocations: 4 kB / 436.1 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003263/0.3383, allocations: 136 kB / 436.2 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000158/0.3385, allocations: 158.6 kB / 436.4 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006881/0.3454, allocations: 3.899 MB / 440.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02062/0.366, allocations: 14.05 MB / 454.3 MB, free: 0.625 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007347/0.3734, allocations: 6.986 MB / 461.3 MB, free: 8.844 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002876/0.3763, allocations: 1.72 MB / 463 MB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00702/0.3833, allocations: 4.242 MB / 467.3 MB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.199e-05/0.3834, allocations: 55.86 kB / 467.3 MB, free: 2.727 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 3.076e-06/0.3834, allocations: 0 / 467.3 MB, free: 2.727 MB / 382.1 MB Notification: Performance of matching and sorting (n=185): time 0.0167/0.4001, allocations: 7.872 MB / 475.2 MB, free: 10.72 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.4001, allocations: 69.41 kB / 475.2 MB, free: 10.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003713/0.4039, allocations: 2.631 MB / 477.9 MB, free: 7.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001171/0.404, allocations: 53.7 kB / 477.9 MB, free: 7.922 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001135/0.4051, allocations: 1.654 MB / 479.6 MB, free: 6.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004814/0.4056, allocations: 0.6545 MB / 480.2 MB, free: 5.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005568/0.4062, allocations: 343.4 kB / 480.6 MB, free: 5.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.537e-05/0.4063, allocations: 305.1 kB / 480.9 MB, free: 4.949 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0016/0.4079, allocations: 0.9058 MB / 481.8 MB, free: 4.043 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001836/0.4097, allocations: 1.302 MB / 483.1 MB, free: 2.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00356/0.4133, allocations: 2.351 MB / 485.4 MB, free: 96 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.378e-06/0.4133, allocations: 4 kB / 485.4 MB, free: 92 kB / 398.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005453/0.4188, allocations: 3.078 MB / 488.5 MB, free: 12.99 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.4188, allocations: 12 kB / 488.5 MB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.003e-05/0.4189, allocations: 8.25 kB / 488.5 MB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001577/0.4205, allocations: 0.5632 MB / 489.1 MB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001814/0.4223, allocations: 431.4 kB / 489.5 MB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00932/0.4316, allocations: 7.596 MB / 497.1 MB, free: 4.113 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001372/0.433, allocations: 83.89 kB / 497.2 MB, free: 4.031 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001657/0.4332, allocations: 75.98 kB / 497.3 MB, free: 3.957 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.001718/0.4349, allocations: 1.157 MB / 498.4 MB, free: 2.789 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004403/0.4354, allocations: 270.2 kB / 498.7 MB, free: 2.523 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005366/0.4407, allocations: 2.882 MB / 0.4898 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.911e-05/0.4408, allocations: 11.95 kB / 0.4898 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.4408, allocations: 0 / 0.4898 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000933/0.4417, allocations: 0.55 MB / 0.4904 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003821/0.4421, allocations: 43.91 kB / 0.4904 GB, free: 14.99 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.4433, allocations: 75.94 kB / 0.4905 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000312/0.4436, allocations: 165.7 kB / 0.4906 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006884/0.4505, allocations: 3.043 MB / 0.4936 GB, free: 11.69 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005708/0.4562, allocations: 3.63 MB / 0.4972 GB, free: 8.047 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001564/0.4578, allocations: 1.042 MB / 0.4982 GB, free: 7.004 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002712/0.4606, allocations: 1.846 MB / 0.5 GB, free: 5.145 MB / 430.1 MB Notification: Performance of Backend: time 4.51e-07/0.4606, allocations: 0 / 0.5 GB, free: 5.145 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005689/0.4663, allocations: 2.604 MB / 0.5025 GB, free: 2.508 MB / 430.1 MB Notification: Performance of SimCode: time 0.01214/0.4784, allocations: 7.651 MB / 0.51 GB, free: 10.78 MB / 446.1 MB Notification: Performance of Templates: time 0.06689/0.5453, allocations: 42.19 MB / 0.5512 GB, free: 0.5 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)