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.0008195/0.0008197, allocations: 96.62 kB / 17.3 MB, free: 6.391 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.0008322/0.0008322, allocations: 172.5 kB / 18.2 MB, free: 5.551 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.399/1.399, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0005216/0.0005217, allocations: 12 kB / 281.4 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08487/0.0854, allocations: 47.57 MB / 329 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01277/0.0982, allocations: 12.76 MB / 341.7 MB, free: 6.941 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008384/0.1066, allocations: 4.776 MB / 346.5 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001941/0.1086, allocations: 67.69 kB / 346.6 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003014/0.1116, allocations: 0.894 MB / 347.5 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004426/0.1161, allocations: 1.248 MB / 348.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002557/0.1186, allocations: 0.8927 MB / 349.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006235/0.1249, allocations: 4.636 MB / 354.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004019/0.1289, allocations: 2.706 MB / 356.9 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002472/0.1314, allocations: 1.412 MB / 358.4 MB, free: 6.191 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004293/0.1357, allocations: 1.91 MB / 360.3 MB, free: 4.273 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007764/0.1365, allocations: 220 kB / 360.5 MB, free: 4.059 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002118/0.1387, allocations: 0.5931 MB / 361.1 MB, free: 3.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001213/0.1399, allocations: 0.9494 MB / 362 MB, free: 2.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003127/0.143, allocations: 1.96 MB / 364 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009579/0.1526, allocations: 6.883 MB / 370.9 MB, free: 9.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1527, allocations: 0 / 370.9 MB, free: 9.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1527, allocations: 4 kB / 370.9 MB, free: 9.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002004/0.1529, allocations: 0 / 370.9 MB, free: 9.625 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.01605/0.169, allocations: 4.221 MB / 375.1 MB, free: 5.328 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.169, allocations: 8.031 kB / 375.1 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008168/0.1772, allocations: 0.8858 MB / 376 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006859/0.1841, allocations: 2.553 MB / 378.5 MB, free: 1.801 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003351/0.1845, allocations: 254.6 kB / 378.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00114/0.1856, allocations: 335.9 kB / 379.1 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1874/0.373, allocations: 4.554 MB / 383.7 MB, free: 46.54 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001194/0.3732, allocations: 5.266 kB / 383.7 MB, free: 46.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005324/0.3737, allocations: 138.3 kB / 383.8 MB, free: 46.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002569/0.374, allocations: 155.1 kB / 384 MB, free: 46.42 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01517/0.3892, allocations: 3.929 MB / 387.9 MB, free: 44.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03715/0.4264, allocations: 14.27 MB / 402.2 MB, free: 35.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006691/0.4331, allocations: 6.983 MB / 409.1 MB, free: 29.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002887/0.4361, allocations: 1.703 MB / 410.8 MB, free: 28.56 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007039/0.4431, allocations: 4.261 MB / 415.1 MB, free: 24.69 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.324e-05/0.4432, allocations: 47.88 kB / 415.1 MB, free: 24.64 MB / 318.1 MB Notification: Performance of pre-optimization done (n=165): time 5.961e-06/0.4432, allocations: 0 / 415.1 MB, free: 24.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.01629/0.4595, allocations: 7.93 MB / 423.1 MB, free: 16.58 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/0.4596, allocations: 71.16 kB / 423.1 MB, free: 16.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003135/0.4627, allocations: 2.624 MB / 425.8 MB, free: 13.85 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002213/0.463, allocations: 54.56 kB / 425.8 MB, free: 13.79 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007618/0.4637, allocations: 1.622 MB / 427.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000396/0.4641, allocations: 0.6218 MB / 428.1 MB, free: 11.54 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001852/0.4643, allocations: 157.6 kB / 428.2 MB, free: 11.38 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.686e-05/0.4644, allocations: 309.1 kB / 428.5 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/0.4658, allocations: 0.9175 MB / 429.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0015/0.4673, allocations: 1.322 MB / 430.8 MB, free: 8.684 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002914/0.4702, allocations: 2.379 MB / 433.1 MB, free: 6.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.707e-06/0.4702, allocations: 4 kB / 433.1 MB, free: 6.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.00487/0.4751, allocations: 3.092 MB / 436.2 MB, free: 3.047 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/0.4751, allocations: 12 kB / 436.2 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.018e-05/0.4752, allocations: 8 kB / 436.3 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001383/0.4766, allocations: 0.5557 MB / 436.8 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001704/0.4783, allocations: 443.3 kB / 437.2 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008552/0.4868, allocations: 6.941 MB / 444.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/0.4887, allocations: 96.97 kB / 444.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002048/0.489, allocations: 75.98 kB / 444.4 MB, free: 10.66 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.002068/0.491, allocations: 1.165 MB / 445.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005954/0.4916, allocations: 252.8 kB / 445.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005579/0.4972, allocations: 2.906 MB / 448.7 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.451e-05/0.4973, allocations: 20 kB / 448.7 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/0.4973, allocations: 8 kB / 448.7 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.999e-05/0.4973, allocations: 11.95 kB / 448.7 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01084/0.5082, allocations: 6.382 MB / 455.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.5082, allocations: 0 / 455.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001323/0.5096, allocations: 283.6 kB / 455.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001761/0.5113, allocations: 0.6149 MB / 456 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001564/0.5115, allocations: 47.98 kB / 456 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01173/0.5233, allocations: 10.49 MB / 466.5 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.5233, allocations: 7.969 kB / 466.5 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007257/0.5306, allocations: 4.199 MB / 470.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001159/0.5318, allocations: 0.5447 MB / 471.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003256/0.5321, allocations: 44.05 kB / 471.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.5333, allocations: 91.94 kB / 471.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003629/0.5337, allocations: 141.7 kB / 471.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001203/0.5338, allocations: 51.98 kB / 471.6 MB, free: 14.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002624/0.5364, allocations: 1.839 MB / 473.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5364, allocations: 0 / 473.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002512/0.539, allocations: 0.699 MB / 474.1 MB, free: 12.21 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.001135/0.5401, allocations: 445.2 kB / 474.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005237/0.5454, allocations: 2.864 MB / 477.4 MB, free: 8.902 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.5454, allocations: 1.812 kB / 477.4 MB, free: 8.902 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00315/0.5486, allocations: 1.953 MB / 479.4 MB, free: 6.906 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003178/0.5518, allocations: 0.5509 MB / 479.9 MB, free: 6.352 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01301/0.5648, allocations: 8.779 MB / 488.7 MB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002455/0.5673, allocations: 2.626 MB / 491.3 MB, free: 10.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001958/0.5692, allocations: 0.4928 MB / 491.8 MB, free: 10.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004929/0.5697, allocations: 163.4 kB / 492 MB, free: 10.23 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.5698, allocations: 8 kB / 492 MB, free: 10.22 MB / 382.1 MB Notification: Performance of Templates: time 0.0627/0.6325, allocations: 35.19 MB / 0.5148 GB, free: 6.98 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 -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","../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