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.00149/0.00149, allocations: 108.4 kB / 18.34 MB, free: 4.832 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.001722/0.001722, allocations: 190.9 kB / 19.28 MB, free: 3.898 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.441/1.441, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001232/0.001232, allocations: 55.91 kB / 282.1 MB, free: 2.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08711/0.08835, allocations: 46.62 MB / 328.7 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01444/0.1028, allocations: 13.57 MB / 342.3 MB, free: 6.098 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008151/0.111, allocations: 4.88 MB / 347.2 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001342/0.1124, allocations: 63.75 kB / 347.2 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002363/0.1148, allocations: 1.033 MB / 348.3 MB, free: 104 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004019/0.1188, allocations: 1.382 MB / 349.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00216/0.121, allocations: 0.9742 MB / 350.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00534/0.1264, allocations: 4.339 MB / 355 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003965/0.1303, allocations: 3.296 MB / 358.3 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003058/0.1334, allocations: 2.002 MB / 360.3 MB, free: 4 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00356/0.137, allocations: 2.269 MB / 362.5 MB, free: 1.723 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009302/0.1379, allocations: 0.5352 MB / 363.1 MB, free: 1.188 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00195/0.1399, allocations: 0.9095 MB / 364 MB, free: 284 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001178/0.1411, allocations: 1.364 MB / 365.3 MB, free: 14.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002582/0.1437, allocations: 2.353 MB / 367.7 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00637/0.1501, allocations: 7.33 MB / 375 MB, free: 5.195 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1501, allocations: 4 kB / 375 MB, free: 5.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.1501, allocations: 0 / 375 MB, free: 5.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001101/0.1502, allocations: 3.938 kB / 375 MB, free: 5.188 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.01116/0.1614, allocations: 4.98 MB / 380 MB, free: 132 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.1614, allocations: 8.031 kB / 380 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1551/0.3166, allocations: 0.8703 MB / 380.9 MB, free: 49.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005605/0.3222, allocations: 2.624 MB / 383.5 MB, free: 48.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001751/0.3224, allocations: 247.8 kB / 383.8 MB, free: 48.03 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007262/0.3231, allocations: 342.8 kB / 384.1 MB, free: 47.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008277/0.3314, allocations: 4.541 MB / 388.6 MB, free: 46.06 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.49e-05/0.3315, allocations: 5.688 kB / 388.6 MB, free: 46.06 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002905/0.3318, allocations: 141.4 kB / 388.8 MB, free: 45.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001718/0.332, allocations: 155.8 kB / 388.9 MB, free: 45.94 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006818/0.3388, allocations: 3.906 MB / 392.8 MB, free: 44.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02138/0.3602, allocations: 14 MB / 406.8 MB, free: 34.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005814/0.3661, allocations: 6.965 MB / 413.8 MB, free: 26.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002332/0.3685, allocations: 1.694 MB / 415.5 MB, free: 25.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007027/0.3755, allocations: 4.238 MB / 419.7 MB, free: 20.8 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.3756, allocations: 51.88 kB / 419.8 MB, free: 20.74 MB / 318.1 MB Notification: Performance of pre-optimization done (n=165): time 4.448e-06/0.3756, allocations: 11.92 kB / 419.8 MB, free: 20.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.01493/0.3905, allocations: 7.815 MB / 427.6 MB, free: 12.79 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.3906, allocations: 69.41 kB / 427.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003134/0.3937, allocations: 2.627 MB / 430.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001088/0.3939, allocations: 53.7 kB / 430.4 MB, free: 9.996 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007583/0.3946, allocations: 1.615 MB / 432 MB, free: 8.363 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003181/0.395, allocations: 0.6238 MB / 432.6 MB, free: 7.746 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004759/0.3954, allocations: 331.3 kB / 432.9 MB, free: 7.414 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.784e-05/0.3955, allocations: 305.1 kB / 433.2 MB, free: 7.113 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001321/0.3968, allocations: 0.9175 MB / 434.1 MB, free: 6.195 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001497/0.3983, allocations: 1.302 MB / 435.4 MB, free: 4.742 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002899/0.4012, allocations: 2.354 MB / 437.8 MB, free: 2.246 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/0.4013, allocations: 4 kB / 437.8 MB, free: 2.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004836/0.4061, allocations: 3.068 MB / 440.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.4061, allocations: 15.94 kB / 440.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.22e-05/0.4062, allocations: 8 kB / 440.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001476/0.4077, allocations: 0.5558 MB / 441.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001764/0.4094, allocations: 435.3 kB / 441.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009484/0.4189, allocations: 7.57 MB / 449.4 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001645/0.4206, allocations: 88 kB / 449.5 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002288/0.4208, allocations: 71.98 kB / 449.6 MB, free: 6.16 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.00201/0.4229, allocations: 1.165 MB / 450.8 MB, free: 4.984 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005644/0.4234, allocations: 248.9 kB / 451 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005555/0.429, allocations: 2.891 MB / 453.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.958e-05/0.429, allocations: 24 kB / 453.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.546e-05/0.4291, allocations: 15.92 kB / 453.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.88e-05/0.4291, allocations: 7.969 kB / 453.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01285/0.442, allocations: 6.325 MB / 460.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/0.442, allocations: 4 kB / 460.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001327/0.4433, allocations: 275.6 kB / 460.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001721/0.4451, allocations: 0.6341 MB / 461.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001645/0.4453, allocations: 47.98 kB / 461.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01258/0.4579, allocations: 11.43 MB / 472.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.4579, allocations: 3.938 kB / 472.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007412/0.4653, allocations: 4.15 MB / 476.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001442/0.4668, allocations: 0.5447 MB / 477.3 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005953/0.4674, allocations: 40 kB / 477.4 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001428/0.4688, allocations: 83.92 kB / 477.5 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003764/0.4692, allocations: 141.7 kB / 477.6 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001495/0.4694, allocations: 59.91 kB / 477.7 MB, free: 9.367 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003048/0.4724, allocations: 1.842 MB / 479.5 MB, free: 7.512 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4724, allocations: 0 / 479.5 MB, free: 7.512 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002524/0.475, allocations: 0.6888 MB / 480.2 MB, free: 6.828 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.001141/0.4761, allocations: 450.9 kB / 480.6 MB, free: 6.398 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005339/0.4815, allocations: 2.841 MB / 483.5 MB, free: 3.535 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.4815, allocations: 0 / 483.5 MB, free: 3.535 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003139/0.4846, allocations: 1.934 MB / 485.4 MB, free: 1.555 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002882/0.4875, allocations: 0.5815 MB / 486 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01288/0.5004, allocations: 7.046 MB / 493 MB, free: 9.895 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003714/0.5042, allocations: 2.634 MB / 495.7 MB, free: 7.234 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002513/0.5067, allocations: 0.4928 MB / 496.2 MB, free: 6.738 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008245/0.5076, allocations: 171.4 kB / 496.3 MB, free: 6.57 MB / 382.1 MB Notification: Performance of SimCode: time 1.142e-06/0.5076, allocations: 0 / 496.3 MB, free: 6.57 MB / 382.1 MB Notification: Performance of Templates: time 0.06419/0.5718, allocations: 34.97 MB / 0.5188 GB, free: 3.535 MB / 414.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 -s cvode -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