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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001046/0.001046, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.185/1.185, allocations: 205.1 MB / 223.7 MB, free: 8.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008004/0.0008003, allocations: 104.4 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007803/0.0007804, allocations: 39.94 kB / 327.2 MB, free: 328 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2034/0.2042, allocations: 46.61 MB / 373.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01226/0.2165, allocations: 13.42 MB / 387.2 MB, free: 35.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00775/0.2243, allocations: 4.827 MB / 392.1 MB, free: 31.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00251/0.2268, allocations: 67.69 kB / 392.1 MB, free: 31.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002935/0.2298, allocations: 0.9028 MB / 393 MB, free: 30.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004032/0.2339, allocations: 1.256 MB / 394.3 MB, free: 28.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002202/0.2361, allocations: 0.9092 MB / 395.2 MB, free: 28.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004683/0.2408, allocations: 4.687 MB / 399.9 MB, free: 23.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003147/0.244, allocations: 2.722 MB / 402.6 MB, free: 20.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00185/0.2458, allocations: 1.611 MB / 404.2 MB, free: 18.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002629/0.2485, allocations: 2.152 MB / 406.4 MB, free: 16.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008941/0.2494, allocations: 316 kB / 406.7 MB, free: 16.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00186/0.2513, allocations: 0.683 MB / 407.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001041/0.2523, allocations: 1.09 MB / 408.5 MB, free: 14.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002272/0.2546, allocations: 2.095 MB / 410.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004114/0.2587, allocations: 7.099 MB / 417.7 MB, free: 5.496 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2587, allocations: 0 / 417.7 MB, free: 5.496 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.2587, allocations: 0 / 417.7 MB, free: 5.496 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.133e-05/0.2588, allocations: 4 kB / 417.7 MB, free: 5.492 MB / 298.7 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.008882/0.2677, allocations: 4.973 MB / 422.6 MB, free: 452 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.2678, allocations: 8.031 kB / 422.6 MB, free: 444 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003698/0.2715, allocations: 0.882 MB / 423.5 MB, free: 15.54 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00401/0.2755, allocations: 2.553 MB / 426.1 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001598/0.2757, allocations: 254.6 kB / 426.3 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004414/0.2761, allocations: 339.9 kB / 426.7 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006764/0.2829, allocations: 4.547 MB / 431.2 MB, free: 7.742 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.989e-05/0.283, allocations: 7.906 kB / 431.2 MB, free: 7.734 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002808/0.2832, allocations: 132 kB / 431.3 MB, free: 7.605 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001333/0.2834, allocations: 154.7 kB / 431.5 MB, free: 7.453 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0061/0.2895, allocations: 3.903 MB / 435.4 MB, free: 3.543 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02002/0.3095, allocations: 14.19 MB / 449.6 MB, free: 5.047 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006612/0.3162, allocations: 6.97 MB / 456.6 MB, free: 13.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002569/0.3188, allocations: 1.681 MB / 458.2 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006913/0.3257, allocations: 4.257 MB / 462.5 MB, free: 7.246 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.3258, allocations: 47.88 kB / 462.5 MB, free: 7.188 MB / 346.7 MB Notification: Performance of pre-optimization done (n=165): time 4.158e-06/0.3258, allocations: 4 kB / 462.5 MB, free: 7.184 MB / 346.7 MB Notification: Performance of matching and sorting (n=185): time 0.01499/0.3408, allocations: 7.818 MB / 470.4 MB, free: 15.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.3408, allocations: 73.41 kB / 470.4 MB, free: 15.15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002997/0.3438, allocations: 2.624 MB / 473.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001006/0.344, allocations: 65.67 kB / 473.1 MB, free: 12.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009569/0.3449, allocations: 1.611 MB / 474.7 MB, free: 10.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004106/0.3453, allocations: 0.6237 MB / 475.4 MB, free: 10.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004872/0.3458, allocations: 335.4 kB / 475.7 MB, free: 9.828 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.352e-05/0.3459, allocations: 309.1 kB / 476 MB, free: 9.523 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001395/0.3473, allocations: 0.9058 MB / 476.9 MB, free: 8.617 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001612/0.349, allocations: 1.302 MB / 478.2 MB, free: 7.164 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003105/0.3521, allocations: 2.359 MB / 480.6 MB, free: 4.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.3521, allocations: 4 kB / 480.6 MB, free: 4.656 MB / 362.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004818/0.3569, allocations: 3.065 MB / 483.6 MB, free: 1.574 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.3569, allocations: 13.97 kB / 483.6 MB, free: 1.562 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.357, allocations: 15.94 kB / 483.7 MB, free: 1.547 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001346/0.3583, allocations: 0.5558 MB / 484.2 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001592/0.3599, allocations: 435.3 kB / 484.6 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008/0.3679, allocations: 6.95 MB / 491.6 MB, free: 9.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.3694, allocations: 83.94 kB / 491.7 MB, free: 9.258 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001436/0.3696, allocations: 75.98 kB / 491.7 MB, free: 9.184 MB / 378.7 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.001688/0.3713, allocations: 1.165 MB / 492.9 MB, free: 8.008 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003868/0.3717, allocations: 248.9 kB / 493.1 MB, free: 7.762 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004817/0.3765, allocations: 2.885 MB / 496 MB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.737e-05/0.3765, allocations: 24 kB / 496.1 MB, free: 4.828 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.3766, allocations: 8 kB / 496.1 MB, free: 4.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/0.3766, allocations: 15.89 kB / 496.1 MB, free: 4.805 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009189/0.3858, allocations: 6.333 MB / 0.4906 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.3858, allocations: 0 / 0.4906 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00118/0.387, allocations: 275.7 kB / 0.4909 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001444/0.3885, allocations: 0.6263 MB / 0.4915 GB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001115/0.3886, allocations: 51.92 kB / 0.4916 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00981/0.3984, allocations: 10.47 MB / 0.5018 GB, free: 2.422 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3984, allocations: 4.031 kB / 0.5018 GB, free: 2.418 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.183/0.5815, allocations: 29.13 MB / 0.5302 GB, free: 104.9 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007655/0.5823, allocations: 0.5379 MB / 0.5308 GB, free: 104.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000238/0.5825, allocations: 39.5 kB / 0.5308 GB, free: 104.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009819/0.5835, allocations: 86.92 kB / 0.5309 GB, free: 104.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002755/0.5838, allocations: 138 kB / 0.531 GB, free: 104.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.741e-05/0.5839, allocations: 55.42 kB / 0.5311 GB, free: 104.4 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001761/0.5857, allocations: 1.843 MB / 0.5329 GB, free: 103.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5857, allocations: 0 / 0.5329 GB, free: 103.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002192/0.5879, allocations: 0.9502 MB / 0.5338 GB, free: 102.7 MB / 394.7 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.0008282/0.5887, allocations: 439.2 kB / 0.5342 GB, free: 102.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003725/0.5924, allocations: 2.839 MB / 0.537 GB, free: 99.49 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.5925, allocations: 0 / 0.537 GB, free: 99.49 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002192/0.5947, allocations: 1.934 MB / 0.5389 GB, free: 97.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001986/0.5967, allocations: 0.5517 MB / 0.5394 GB, free: 96.97 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01004/0.6067, allocations: 10.55 MB / 0.5497 GB, free: 86.36 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001671/0.6084, allocations: 2.687 MB / 0.5523 GB, free: 83.64 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001604/0.61, allocations: 0.5084 MB / 0.5528 GB, free: 83.13 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004499/0.6105, allocations: 171.4 kB / 0.553 GB, free: 82.96 MB / 394.7 MB Notification: Performance of SimCode: time 4.81e-07/0.6105, allocations: 0 / 0.553 GB, free: 82.96 MB / 394.7 MB Notification: Performance of Templates: time 0.05181/0.6623, allocations: 43.12 MB / 0.5951 GB, free: 39.81 MB / 394.7 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@2/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