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.001405/0.001405, allocations: 102 kB / 18.4 MB, free: 4.66 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.001316/0.001316, allocations: 190.5 kB / 19.33 MB, free: 3.738 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.475/1.475, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.00118/0.00118, allocations: 51.92 kB / 329.2 MB, free: 3.25 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09144/0.09263, allocations: 46.61 MB / 375.9 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.2038/0.2965, allocations: 13.57 MB / 389.4 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01026/0.3068, allocations: 4.875 MB / 394.3 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003631/0.3105, allocations: 67.22 kB / 394.4 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004117/0.3146, allocations: 1.039 MB / 395.4 MB, free: 1.699 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00589/0.3206, allocations: 1.399 MB / 396.8 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002919/0.3235, allocations: 0.971 MB / 397.8 MB, free: 188 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006974/0.3305, allocations: 4.33 MB / 402.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005912/0.3364, allocations: 3.289 MB / 405.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004969/0.3414, allocations: 2.017 MB / 407.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005294/0.3468, allocations: 2.275 MB / 409.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002031/0.3488, allocations: 0.5369 MB / 410.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004059/0.3529, allocations: 0.9066 MB / 411.1 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002655/0.3556, allocations: 1.363 MB / 412.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005994/0.3616, allocations: 2.348 MB / 414.8 MB, free: 7.473 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01255/0.3742, allocations: 7.34 MB / 422.2 MB, free: 1.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.3742, allocations: 0 / 422.2 MB, free: 1.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3742, allocations: 0 / 422.2 MB, free: 1.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002949/0.3745, allocations: 0 / 422.2 MB, free: 1.223 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.01726/0.3918, allocations: 4.977 MB / 427.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/0.3919, allocations: 16.02 kB / 427.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005695/0.3976, allocations: 0.8701 MB / 428 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006857/0.4045, allocations: 2.623 MB / 430.7 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003314/0.4048, allocations: 250.6 kB / 430.9 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001493/0.4063, allocations: 343.9 kB / 431.2 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01347/0.4198, allocations: 4.543 MB / 435.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001548/0.42, allocations: 7.906 kB / 435.8 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009995/0.421, allocations: 136 kB / 435.9 MB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002104/0.4212, allocations: 150.7 kB / 436.1 MB, free: 3.117 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00936/0.4306, allocations: 3.907 MB / 440 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02871/0.4594, allocations: 14.01 MB / 454 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009598/0.469, allocations: 6.971 MB / 461 MB, free: 9.113 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003814/0.4729, allocations: 1.724 MB / 462.7 MB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009863/0.4827, allocations: 4.233 MB / 466.9 MB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.327e-05/0.4828, allocations: 55.86 kB / 467 MB, free: 3.004 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 4.108e-06/0.4829, allocations: 0 / 467 MB, free: 3.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=185): time 0.02028/0.5031, allocations: 7.823 MB / 474.8 MB, free: 11.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.987e-05/0.5032, allocations: 69.41 kB / 474.9 MB, free: 10.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005012/0.5083, allocations: 2.627 MB / 477.5 MB, free: 8.301 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003625/0.5087, allocations: 57.61 kB / 477.6 MB, free: 8.242 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00142/0.5101, allocations: 1.615 MB / 479.2 MB, free: 6.605 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008152/0.5109, allocations: 0.6237 MB / 479.8 MB, free: 5.973 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00085/0.5118, allocations: 335.4 kB / 480.1 MB, free: 5.641 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.5119, allocations: 309.1 kB / 480.4 MB, free: 5.336 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001758/0.5137, allocations: 0.9058 MB / 481.3 MB, free: 4.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002007/0.5157, allocations: 1.302 MB / 482.6 MB, free: 2.977 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003848/0.5196, allocations: 2.351 MB / 485 MB, free: 492 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.577e-05/0.5196, allocations: 8 kB / 485 MB, free: 484 kB / 398.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006194/0.5258, allocations: 3.057 MB / 488 MB, free: 13.4 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/0.5259, allocations: 16.19 kB / 488.1 MB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/0.5259, allocations: 12 kB / 488.1 MB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001623/0.5275, allocations: 0.5555 MB / 488.6 MB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001965/0.5295, allocations: 435.3 kB / 489.1 MB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009742/0.5393, allocations: 7.583 MB / 496.6 MB, free: 4.523 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001978/0.5413, allocations: 91.91 kB / 496.7 MB, free: 4.434 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003583/0.5416, allocations: 75.98 kB / 496.8 MB, free: 4.359 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.002403/0.5441, allocations: 1.165 MB / 498 MB, free: 3.184 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007629/0.5448, allocations: 260.9 kB / 498.2 MB, free: 2.926 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005851/0.5507, allocations: 2.87 MB / 0.4893 GB, free: 32 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.701e-05/0.5508, allocations: 27.98 kB / 0.4894 GB, free: 4 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.413e-05/0.5508, allocations: 8.047 kB / 0.4894 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-05/0.5508, allocations: 7.922 kB / 0.4894 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01262/0.5635, allocations: 6.34 MB / 0.4956 GB, free: 9.555 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/0.5635, allocations: 4 kB / 0.4956 GB, free: 9.551 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00132/0.5648, allocations: 279.7 kB / 0.4958 GB, free: 9.277 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001678/0.5665, allocations: 0.6044 MB / 0.4964 GB, free: 8.66 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001675/0.5667, allocations: 43.98 kB / 0.4965 GB, free: 8.617 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01311/0.5798, allocations: 11.45 MB / 0.5077 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.5799, allocations: 8 kB / 0.5077 GB, free: 12.59 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008058/0.5879, allocations: 4.148 MB / 0.5117 GB, free: 8.398 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001448/0.5894, allocations: 0.5408 MB / 0.5122 GB, free: 7.836 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006976/0.5902, allocations: 39.94 kB / 0.5123 GB, free: 7.797 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001573/0.5917, allocations: 79.94 kB / 0.5124 GB, free: 7.719 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004141/0.5922, allocations: 145.7 kB / 0.5125 GB, free: 7.578 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001741/0.5924, allocations: 51.98 kB / 0.5126 GB, free: 7.527 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003373/0.5957, allocations: 1.842 MB / 0.5144 GB, free: 5.672 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5958, allocations: 0 / 0.5144 GB, free: 5.672 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003301/0.5991, allocations: 0.6876 MB / 0.515 GB, free: 4.984 MB / 446.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.001308/0.6004, allocations: 448.5 kB / 0.5155 GB, free: 4.543 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005855/0.6063, allocations: 2.838 MB / 0.5182 GB, free: 1.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.6063, allocations: 0 / 0.5182 GB, free: 1.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003629/0.61, allocations: 1.943 MB / 0.5201 GB, free: 15.69 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003798/0.6138, allocations: 0.5967 MB / 0.5207 GB, free: 15.09 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01543/0.6292, allocations: 7.054 MB / 0.5276 GB, free: 7.992 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003461/0.6327, allocations: 2.57 MB / 0.5301 GB, free: 5.395 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009997/0.6338, allocations: 183.4 kB / 0.5303 GB, free: 5.215 MB / 462.1 MB Notification: Performance of SimCode: time 1.413e-06/0.6338, allocations: 0 / 0.5303 GB, free: 5.215 MB / 462.1 MB Notification: Performance of Templates: time 0.3105/0.9443, allocations: 100.5 MB / 0.6284 GB, free: 90.07 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) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_withLosses/AIMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches