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.001315/0.001315, allocations: 114.5 kB / 17.73 MB, free: 5.32 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.001078/0.001078, allocations: 179 kB / 18.66 MB, free: 4.398 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.446/1.446, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.002103/0.002103, allocations: 56.39 kB / 328.6 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1138, allocations: 46.62 MB / 375.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.2085/0.3223, allocations: 13.56 MB / 388.8 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01138/0.3337, allocations: 4.871 MB / 393.6 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003544/0.3374, allocations: 71.12 kB / 393.7 MB, free: 2.273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004209/0.3416, allocations: 1.036 MB / 394.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005869/0.3475, allocations: 1.394 MB / 396.1 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003829/0.3514, allocations: 0.9726 MB / 397.1 MB, free: 216 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01022/0.3616, allocations: 4.322 MB / 401.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00667/0.3683, allocations: 3.297 MB / 404.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005046/0.3734, allocations: 2.02 MB / 406.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006129/0.3795, allocations: 2.266 MB / 409 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002208/0.3818, allocations: 0.5379 MB / 409.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004722/0.3865, allocations: 0.9125 MB / 410.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00276/0.3893, allocations: 1.36 MB / 411.8 MB, free: 9.223 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007066/0.3964, allocations: 2.349 MB / 414.2 MB, free: 7.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01572/0.4121, allocations: 7.341 MB / 421.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.4122, allocations: 0 / 421.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4122, allocations: 0 / 421.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003506/0.4125, allocations: 0 / 421.5 MB, free: 1.238 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.01826/0.4308, allocations: 4.973 MB / 426.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.4309, allocations: 11.97 kB / 426.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004606/0.4355, allocations: 0.8779 MB / 427.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005767/0.4413, allocations: 2.623 MB / 430 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003279/0.4416, allocations: 254.6 kB / 430.2 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000742/0.4424, allocations: 339.9 kB / 430.6 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008675/0.4511, allocations: 4.543 MB / 435.1 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.617e-05/0.4512, allocations: 3.906 kB / 435.1 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003221/0.4515, allocations: 140 kB / 435.2 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001558/0.4517, allocations: 154.7 kB / 435.4 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007439/0.4591, allocations: 3.911 MB / 439.3 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02748/0.4866, allocations: 14 MB / 453.3 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009029/0.4957, allocations: 6.979 MB / 460.3 MB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003524/0.4993, allocations: 1.716 MB / 462 MB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007897/0.5072, allocations: 4.249 MB / 466.3 MB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/0.5072, allocations: 51.81 kB / 466.3 MB, free: 3.016 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 3.667e-06/0.5073, allocations: 0 / 466.3 MB, free: 3.016 MB / 382.1 MB Notification: Performance of matching and sorting (n=185): time 0.017/0.5243, allocations: 7.831 MB / 474.1 MB, free: 11.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.397e-05/0.5244, allocations: 73.41 kB / 474.2 MB, free: 10.96 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003793/0.5282, allocations: 2.62 MB / 476.8 MB, free: 8.312 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001381/0.5283, allocations: 61.64 kB / 476.9 MB, free: 8.246 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001224/0.5295, allocations: 1.615 MB / 478.5 MB, free: 6.609 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005396/0.5301, allocations: 0.6276 MB / 479.1 MB, free: 5.973 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000553/0.5307, allocations: 331.4 kB / 479.5 MB, free: 5.645 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.5308, allocations: 305.1 kB / 479.7 MB, free: 5.344 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001588/0.5324, allocations: 0.9058 MB / 480.7 MB, free: 4.438 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001824/0.5342, allocations: 1.306 MB / 482 MB, free: 2.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003522/0.5377, allocations: 2.348 MB / 484.3 MB, free: 500 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.5378, allocations: 8 kB / 484.3 MB, free: 492 kB / 398.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005469/0.5432, allocations: 3.061 MB / 487.4 MB, free: 13.4 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.5433, allocations: 12.25 kB / 487.4 MB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.992e-05/0.5433, allocations: 15.98 kB / 487.4 MB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001482/0.5448, allocations: 0.5477 MB / 488 MB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001763/0.5466, allocations: 439.3 kB / 488.4 MB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009296/0.5559, allocations: 7.575 MB / 496 MB, free: 4.539 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001844/0.5577, allocations: 99.78 kB / 496.1 MB, free: 4.441 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001562/0.5579, allocations: 75.98 kB / 496.1 MB, free: 4.367 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.002416/0.5603, allocations: 1.157 MB / 497.3 MB, free: 3.199 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000572/0.5609, allocations: 260.9 kB / 497.5 MB, free: 2.941 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005493/0.5664, allocations: 2.874 MB / 0.4887 GB, free: 44 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.465e-05/0.5665, allocations: 23.98 kB / 0.4887 GB, free: 20 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.411e-05/0.5665, allocations: 8 kB / 0.4887 GB, free: 12 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-05/0.5665, allocations: 7.969 kB / 0.4887 GB, free: 4 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01093/0.5775, allocations: 6.344 MB / 0.4949 GB, free: 9.566 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.027e-05/0.5775, allocations: 3.984 kB / 0.4949 GB, free: 9.562 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001309/0.5788, allocations: 275.8 kB / 0.4952 GB, free: 9.293 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001562/0.5804, allocations: 0.6122 MB / 0.4958 GB, free: 8.668 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001514/0.5806, allocations: 47.97 kB / 0.4958 GB, free: 8.621 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01241/0.593, allocations: 11.44 MB / 0.507 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.593, allocations: 4.094 kB / 0.507 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00736/0.6004, allocations: 4.156 MB / 0.5111 GB, free: 8.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/0.6017, allocations: 0.5369 MB / 0.5116 GB, free: 7.852 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003327/0.6021, allocations: 43.94 kB / 0.5116 GB, free: 7.809 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001166/0.6032, allocations: 87.92 kB / 0.5117 GB, free: 7.723 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003593/0.6036, allocations: 133.8 kB / 0.5118 GB, free: 7.594 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/0.6037, allocations: 56.03 kB / 0.5119 GB, free: 7.539 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002678/0.6064, allocations: 1.842 MB / 0.5137 GB, free: 5.684 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6064, allocations: 0 / 0.5137 GB, free: 5.684 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002309/0.6087, allocations: 0.6915 MB / 0.5144 GB, free: 4.992 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.001091/0.6098, allocations: 447.5 kB / 0.5148 GB, free: 4.551 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005142/0.615, allocations: 2.846 MB / 0.5176 GB, free: 1.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.615, allocations: 4 kB / 0.5176 GB, free: 1.676 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003185/0.6182, allocations: 1.931 MB / 0.5195 GB, free: 15.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002963/0.6212, allocations: 0.5929 MB / 0.52 GB, free: 15.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01291/0.6341, allocations: 7.041 MB / 0.5269 GB, free: 8.023 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002763/0.6369, allocations: 2.631 MB / 0.5295 GB, free: 5.363 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001949/0.6389, allocations: 0.4967 MB / 0.53 GB, free: 4.863 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005206/0.6394, allocations: 171.4 kB / 0.5301 GB, free: 4.695 MB / 462.1 MB Notification: Performance of SimCode: time 1.153e-06/0.6394, allocations: 4 kB / 0.5301 GB, free: 4.691 MB / 462.1 MB Notification: Performance of Templates: time 0.2429/0.8823, allocations: 35.73 MB / 0.565 GB, free: 147.6 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/jenkins/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/jenkins/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