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.001102/0.001102, allocations: 110.5 kB / 17.93 MB, free: 5.676 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.001158/0.001158, allocations: 193.8 kB / 18.86 MB, free: 4.754 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.374/1.374, allocations: 205.1 MB / 224.7 MB, free: 12.45 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.00112/0.00112, allocations: 47.94 kB / 280.8 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07846/0.07959, allocations: 46.63 MB / 327.4 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01425/0.09388, allocations: 13.42 MB / 340.9 MB, free: 7.301 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009101/0.103, allocations: 4.791 MB / 345.7 MB, free: 2.496 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002144/0.1052, allocations: 67.69 kB / 345.7 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002696/0.108, allocations: 0.9096 MB / 346.6 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004023/0.112, allocations: 1.255 MB / 347.9 MB, free: 260 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002201/0.1142, allocations: 0.889 MB / 348.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00532/0.1195, allocations: 4.484 MB / 353.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003517/0.1231, allocations: 3.284 MB / 356.5 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002491/0.1256, allocations: 1.892 MB / 358.4 MB, free: 5.605 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003548/0.1292, allocations: 2.312 MB / 360.7 MB, free: 3.285 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001053/0.1302, allocations: 0.5312 MB / 361.3 MB, free: 2.754 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00209/0.1323, allocations: 0.9096 MB / 362.2 MB, free: 1.844 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001196/0.1335, allocations: 1.317 MB / 363.5 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002858/0.1364, allocations: 2.349 MB / 365.9 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0062/0.1426, allocations: 6.162 MB / 372 MB, free: 7.988 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.245e-06/0.1427, allocations: 4 kB / 372 MB, free: 7.984 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1427, allocations: 0 / 372 MB, free: 7.984 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000177/0.1429, allocations: 4 kB / 372 MB, free: 7.98 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.01238/0.1552, allocations: 4.965 MB / 377 MB, free: 2.938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.1553, allocations: 12.03 kB / 377 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004509/0.1598, allocations: 0.8741 MB / 377.9 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1481/0.308, allocations: 2.558 MB / 380.4 MB, free: 47.97 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002186/0.3082, allocations: 255.5 kB / 380.7 MB, free: 47.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008881/0.3091, allocations: 335 kB / 381 MB, free: 47.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009232/0.3184, allocations: 4.543 MB / 385.6 MB, free: 46.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-05/0.3185, allocations: 3.531 kB / 385.6 MB, free: 46.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003365/0.3188, allocations: 135.8 kB / 385.7 MB, free: 46.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001839/0.319, allocations: 158.3 kB / 385.8 MB, free: 46.15 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008279/0.3273, allocations: 3.902 MB / 389.7 MB, free: 44.64 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02152/0.3489, allocations: 14.19 MB / 403.9 MB, free: 35.46 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006091/0.355, allocations: 6.963 MB / 410.9 MB, free: 29.05 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002371/0.3574, allocations: 1.694 MB / 412.6 MB, free: 27.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005895/0.3633, allocations: 4.254 MB / 416.8 MB, free: 23.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.3634, allocations: 55.81 kB / 416.9 MB, free: 23.06 MB / 318.1 MB Notification: Performance of pre-optimization done (n=165): time 3.978e-06/0.3634, allocations: 0 / 416.9 MB, free: 23.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.01467/0.3781, allocations: 7.832 MB / 424.7 MB, free: 15.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.572e-05/0.3781, allocations: 73.34 kB / 424.8 MB, free: 15.03 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002969/0.3811, allocations: 2.631 MB / 427.4 MB, free: 12.37 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002288/0.3814, allocations: 53.7 kB / 427.5 MB, free: 12.31 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007513/0.3821, allocations: 1.615 MB / 429.1 MB, free: 10.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000398/0.3825, allocations: 0.6231 MB / 429.7 MB, free: 10.06 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004596/0.383, allocations: 327.4 kB / 430 MB, free: 9.734 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.763e-05/0.3831, allocations: 305.1 kB / 430.3 MB, free: 9.434 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001262/0.3843, allocations: 0.9136 MB / 431.3 MB, free: 8.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001388/0.3857, allocations: 1.302 MB / 432.6 MB, free: 7.066 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002719/0.3885, allocations: 2.352 MB / 434.9 MB, free: 4.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/0.3885, allocations: 4 kB / 434.9 MB, free: 4.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004692/0.3932, allocations: 3.072 MB / 438 MB, free: 1.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.751e-05/0.3932, allocations: 12 kB / 438 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-05/0.3933, allocations: 8 kB / 438 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/0.3946, allocations: 0.5636 MB / 438.6 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001693/0.3963, allocations: 435.3 kB / 439 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009239/0.4056, allocations: 7.575 MB / 446.6 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001757/0.4074, allocations: 91.78 kB / 446.7 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002038/0.4076, allocations: 75.98 kB / 446.7 MB, free: 8.461 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.001951/0.4096, allocations: 1.169 MB / 447.9 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005519/0.4101, allocations: 252.9 kB / 448.2 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005348/0.4155, allocations: 2.871 MB / 451 MB, free: 4.137 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.419e-05/0.4156, allocations: 27.98 kB / 451 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/0.4156, allocations: 8 kB / 451.1 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.58e-05/0.4156, allocations: 11.97 kB / 451.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0107/0.4263, allocations: 6.344 MB / 457.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.4264, allocations: 4 kB / 457.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001325/0.4277, allocations: 275.7 kB / 457.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001705/0.4294, allocations: 0.6168 MB / 458.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001698/0.4296, allocations: 47.98 kB / 458.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01146/0.4411, allocations: 11.46 MB / 469.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4411, allocations: 0 / 469.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006978/0.4481, allocations: 4.15 MB / 474 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001237/0.4494, allocations: 0.5447 MB / 474.5 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003351/0.4497, allocations: 43.98 kB / 474.5 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/0.4509, allocations: 79.94 kB / 474.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003731/0.4513, allocations: 141.7 kB / 474.8 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001344/0.4514, allocations: 51.98 kB / 474.8 MB, free: 11.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00252/0.454, allocations: 1.842 MB / 476.7 MB, free: 9.844 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.454, allocations: 0 / 476.7 MB, free: 9.844 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002288/0.4563, allocations: 0.6887 MB / 477.3 MB, free: 9.16 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.001099/0.4574, allocations: 445.7 kB / 477.8 MB, free: 8.742 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007535/0.4649, allocations: 3.453 MB / 481.2 MB, free: 5.285 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/0.465, allocations: 0 / 481.2 MB, free: 5.285 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003038/0.468, allocations: 1.939 MB / 483.2 MB, free: 3.297 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00271/0.4708, allocations: 0.5814 MB / 483.8 MB, free: 2.711 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01284/0.4836, allocations: 8.639 MB / 492.4 MB, free: 10.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00228/0.4859, allocations: 2.57 MB / 495 MB, free: 7.453 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000808/0.4868, allocations: 183.4 kB / 495.1 MB, free: 7.273 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4868, allocations: 0 / 495.1 MB, free: 7.273 MB / 382.1 MB Notification: Performance of Templates: time 0.2593/0.7461, allocations: 100.2 MB / 0.5813 GB, free: 118.9 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","../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