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.00139/0.00139, allocations: 110.2 kB / 18.25 MB, free: 4.898 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.001485/0.001485, allocations: 195.3 kB / 19.18 MB, free: 3.977 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.392/1.392, allocations: 205.1 MB / 225 MB, free: 12.29 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.001311/0.001311, allocations: 51.92 kB / 281.3 MB, free: 3.148 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0821/0.08342, allocations: 46.62 MB / 328 MB, free: 4.453 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01557/0.09904, allocations: 13.56 MB / 341.5 MB, free: 6.812 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009167/0.1083, allocations: 4.872 MB / 346.4 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002184/0.1105, allocations: 63.75 kB / 346.5 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00319/0.1138, allocations: 1.033 MB / 347.5 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004374/0.1182, allocations: 1.386 MB / 348.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002568/0.1207, allocations: 0.978 MB / 349.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005261/0.126, allocations: 4.31 MB / 354.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004696/0.1307, allocations: 3.3 MB / 357.5 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003469/0.1342, allocations: 1.994 MB / 359.5 MB, free: 4.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003704/0.1379, allocations: 2.316 MB / 361.8 MB, free: 2.426 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001354/0.1393, allocations: 0.539 MB / 362.3 MB, free: 1.887 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002608/0.1419, allocations: 0.9096 MB / 363.2 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00181/0.1438, allocations: 1.324 MB / 364.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003852/0.1476, allocations: 2.353 MB / 366.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008272/0.1559, allocations: 7.275 MB / 374.2 MB, free: 5.988 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.156, allocations: 0 / 374.2 MB, free: 5.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.596e-06/0.156, allocations: 0 / 374.2 MB, free: 5.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002165/0.1562, allocations: 3.938 kB / 374.2 MB, free: 5.984 MB / 318.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.01402/0.1702, allocations: 4.984 MB / 379.2 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.1703, allocations: 12.03 kB / 379.2 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004921/0.1752, allocations: 0.878 MB / 380.1 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1635/0.3387, allocations: 2.593 MB / 382.6 MB, free: 48.12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004237/0.3392, allocations: 253.9 kB / 382.9 MB, free: 48.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001373/0.3406, allocations: 335.3 kB / 383.2 MB, free: 47.9 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01133/0.3519, allocations: 4.541 MB / 387.8 MB, free: 46.04 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.567e-05/0.3521, allocations: 6.766 kB / 387.8 MB, free: 46.04 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003295/0.3524, allocations: 137.3 kB / 387.9 MB, free: 45.94 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001923/0.3526, allocations: 155.3 kB / 388.1 MB, free: 45.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007191/0.3598, allocations: 3.91 MB / 392 MB, free: 44.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02093/0.3808, allocations: 14.18 MB / 406.1 MB, free: 34.61 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006198/0.387, allocations: 6.971 MB / 413.1 MB, free: 27.36 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002575/0.3896, allocations: 1.701 MB / 414.8 MB, free: 25.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006283/0.3959, allocations: 4.245 MB / 419.1 MB, free: 21.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.396, allocations: 59.81 kB / 419.1 MB, free: 21.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=165): time 4.789e-06/0.396, allocations: 3.844 kB / 419.1 MB, free: 21.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.01531/0.4113, allocations: 7.816 MB / 426.9 MB, free: 13.37 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.459e-05/0.4114, allocations: 73.41 kB / 427 MB, free: 13.29 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00298/0.4144, allocations: 2.624 MB / 429.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002005/0.4146, allocations: 61.7 kB / 429.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007944/0.4154, allocations: 1.612 MB / 431.3 MB, free: 8.941 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004042/0.4158, allocations: 0.6222 MB / 431.9 MB, free: 8.324 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004897/0.4163, allocations: 339.1 kB / 432.3 MB, free: 7.988 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.097e-05/0.4164, allocations: 301.1 kB / 432.6 MB, free: 7.691 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001384/0.4178, allocations: 0.9097 MB / 433.5 MB, free: 6.781 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001513/0.4193, allocations: 1.306 MB / 434.8 MB, free: 5.324 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002947/0.4222, allocations: 2.358 MB / 437.1 MB, free: 2.824 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.264e-06/0.4223, allocations: 4 kB / 437.1 MB, free: 2.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005128/0.4274, allocations: 3.065 MB / 440.2 MB, free: 15.74 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.894e-05/0.4275, allocations: 8 kB / 440.2 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.653e-05/0.4275, allocations: 12 kB / 440.2 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001641/0.4291, allocations: 0.5558 MB / 440.8 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/0.4309, allocations: 451.2 kB / 441.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009567/0.4405, allocations: 7.571 MB / 448.8 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001882/0.4424, allocations: 87.88 kB / 448.9 MB, free: 6.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001867/0.4427, allocations: 75.98 kB / 448.9 MB, free: 6.719 MB / 334.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.001973/0.4446, allocations: 1.165 MB / 450.1 MB, free: 5.543 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005746/0.4452, allocations: 248.9 kB / 450.3 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005479/0.4507, allocations: 2.889 MB / 453.2 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.254e-05/0.4508, allocations: 24 kB / 453.3 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-05/0.4508, allocations: 12 kB / 453.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/0.4508, allocations: 11.95 kB / 453.3 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01041/0.4612, allocations: 6.33 MB / 459.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.899e-06/0.4613, allocations: 0 / 459.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001337/0.4626, allocations: 279.5 kB / 459.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001677/0.4643, allocations: 0.634 MB / 460.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001371/0.4645, allocations: 47.89 kB / 460.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01196/0.4764, allocations: 11.44 MB / 472 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.4765, allocations: 4.031 kB / 472 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007332/0.4838, allocations: 4.155 MB / 476.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001274/0.4851, allocations: 0.5408 MB / 476.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003564/0.4855, allocations: 43.98 kB / 476.7 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.4867, allocations: 87.86 kB / 476.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003608/0.4871, allocations: 141.7 kB / 477 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000122/0.4872, allocations: 55.97 kB / 477 MB, free: 9.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002548/0.4897, allocations: 1.846 MB / 478.9 MB, free: 8.051 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4898, allocations: 0 / 478.9 MB, free: 8.051 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002309/0.4921, allocations: 0.6902 MB / 479.6 MB, free: 7.363 MB / 366.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.001111/0.4932, allocations: 429 kB / 480 MB, free: 6.953 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007714/0.5009, allocations: 3.459 MB / 483.4 MB, free: 3.488 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.501, allocations: 0 / 483.4 MB, free: 3.488 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003106/0.5041, allocations: 1.938 MB / 485.4 MB, free: 1.504 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002929/0.507, allocations: 0.5853 MB / 486 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0126/0.5196, allocations: 7.138 MB / 493.1 MB, free: 9.742 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002318/0.522, allocations: 2.573 MB / 495.7 MB, free: 7.145 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008025/0.5228, allocations: 179.4 kB / 495.9 MB, free: 6.969 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5228, allocations: 0 / 495.9 MB, free: 6.969 MB / 382.1 MB Notification: Performance of Templates: time 0.2754/0.7983, allocations: 100.2 MB / 0.582 GB, free: 118.6 MB / 430.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