Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001717/0.001718, allocations: 173.7 kB / 16.72 MB, free: 5.086 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.39/1.39, allocations: 205.4 MB / 222.9 MB, free: 8.945 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.0007715/0.0007713, allocations: 82.39 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003364/0.0003364, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2324, allocations: 47.58 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01081/0.2433, allocations: 11.97 MB / 387.1 MB, free: 36.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008606/0.252, allocations: 4.529 MB / 391.6 MB, free: 32.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002709/0.2547, allocations: 63.75 kB / 391.7 MB, free: 32.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002991/0.2577, allocations: 0.773 MB / 392.4 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004206/0.262, allocations: 1.158 MB / 393.6 MB, free: 30.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002222/0.2642, allocations: 0.6887 MB / 394.3 MB, free: 29.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005273/0.2695, allocations: 4.362 MB / 398.6 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003785/0.2733, allocations: 2.719 MB / 401.4 MB, free: 22.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002399/0.2757, allocations: 1.393 MB / 402.7 MB, free: 20.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002863/0.2786, allocations: 1.844 MB / 404.6 MB, free: 19.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009059/0.2795, allocations: 224 kB / 404.8 MB, free: 18.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002043/0.2816, allocations: 0.5736 MB / 405.4 MB, free: 18.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001166/0.2828, allocations: 0.9459 MB / 406.3 MB, free: 17.33 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002956/0.2857, allocations: 1.879 MB / 408.2 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005042/0.2908, allocations: 5.949 MB / 414.2 MB, free: 9.473 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.81e-06/0.2908, allocations: 0 / 414.2 MB, free: 9.473 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.2908, allocations: 0 / 414.2 MB, free: 9.473 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002173/0.291, allocations: 3.938 kB / 414.2 MB, free: 9.469 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.009808/0.3009, allocations: 4.221 MB / 418.4 MB, free: 5.172 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.3009, allocations: 8.031 kB / 418.4 MB, free: 5.164 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004413/0.3053, allocations: 0.8819 MB / 419.3 MB, free: 4.277 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004696/0.3101, allocations: 2.565 MB / 421.8 MB, free: 1.637 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002302/0.3103, allocations: 254.6 kB / 422.1 MB, free: 1.387 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009647/0.3113, allocations: 335.9 kB / 422.4 MB, free: 1.059 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009867/0.3212, allocations: 4.535 MB / 427 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-05/0.3213, allocations: 7.938 kB / 427 MB, free: 12.47 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003703/0.3217, allocations: 132 kB / 427.1 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001565/0.3218, allocations: 154.7 kB / 427.2 MB, free: 12.19 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007167/0.329, allocations: 3.911 MB / 431.1 MB, free: 8.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02271/0.3518, allocations: 14.25 MB / 445.4 MB, free: 9.719 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007017/0.3588, allocations: 6.99 MB / 452.4 MB, free: 1.926 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002952/0.3618, allocations: 1.693 MB / 454.1 MB, free: 240 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007746/0.3696, allocations: 4.268 MB / 458.3 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.077e-05/0.3697, allocations: 51.88 kB / 458.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=165): time 4.358e-06/0.3697, allocations: 0 / 458.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=185): time 0.01765/0.3873, allocations: 7.895 MB / 466.3 MB, free: 3.781 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.615e-05/0.3874, allocations: 81.33 kB / 466.4 MB, free: 3.691 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004646/0.3921, allocations: 2.612 MB / 469 MB, free: 1.055 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003108/0.3924, allocations: 57.7 kB / 469 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001405/0.3939, allocations: 1.611 MB / 470.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000747/0.3946, allocations: 0.6237 MB / 471.3 MB, free: 14.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.3947, allocations: 40 kB / 471.3 MB, free: 14.69 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.3949, allocations: 381.8 kB / 471.7 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001647/0.3966, allocations: 0.9213 MB / 472.6 MB, free: 13.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/0.3983, allocations: 1.306 MB / 473.9 MB, free: 11.92 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003455/0.4018, allocations: 2.367 MB / 476.3 MB, free: 9.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.4018, allocations: 4 kB / 476.3 MB, free: 9.406 MB / 362.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005497/0.4073, allocations: 3.077 MB / 479.4 MB, free: 6.312 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.159e-05/0.4074, allocations: 8 kB / 479.4 MB, free: 6.305 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.107e-05/0.4074, allocations: 12.25 kB / 479.4 MB, free: 6.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001509/0.4089, allocations: 0.5477 MB / 479.9 MB, free: 5.738 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001715/0.4107, allocations: 443.4 kB / 480.4 MB, free: 5.305 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008684/0.4194, allocations: 6.962 MB / 487.3 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001943/0.4213, allocations: 91.94 kB / 487.4 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002148/0.4216, allocations: 75.98 kB / 487.5 MB, free: 13.91 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(7,75.5%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002618/0.4242, allocations: 1.157 MB / 488.6 MB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005756/0.4248, allocations: 260.8 kB / 488.9 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005285/0.4301, allocations: 2.889 MB / 491.8 MB, free: 9.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.319e-05/0.4301, allocations: 27.92 kB / 491.8 MB, free: 9.543 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.4302, allocations: 8 kB / 491.8 MB, free: 9.535 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-05/0.4302, allocations: 11.91 kB / 491.8 MB, free: 9.523 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/0.4404, allocations: 6.353 MB / 498.2 MB, free: 3.078 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.4405, allocations: 128 / 498.2 MB, free: 3.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001255/0.4417, allocations: 283.6 kB / 498.5 MB, free: 2.801 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001532/0.4433, allocations: 0.616 MB / 499.1 MB, free: 2.172 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001263/0.4434, allocations: 43.98 kB / 499.1 MB, free: 2.129 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2072/0.6507, allocations: 10.48 MB / 0.4977 GB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.6507, allocations: 1.938 kB / 0.4977 GB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007326/0.658, allocations: 4.19 MB / 0.5018 GB, free: 98.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/0.6592, allocations: 0.5473 MB / 0.5023 GB, free: 98.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002876/0.6595, allocations: 38.62 kB / 0.5023 GB, free: 98.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.6606, allocations: 94.22 kB / 0.5024 GB, free: 98.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003497/0.6609, allocations: 135.9 kB / 0.5025 GB, free: 98.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/0.6611, allocations: 54.7 kB / 0.5026 GB, free: 98.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002612/0.6637, allocations: 1.825 MB / 0.5044 GB, free: 97.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6637, allocations: 0 / 0.5044 GB, free: 97.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002544/0.6663, allocations: 0.6899 MB / 0.5051 GB, free: 97.63 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 6,(1,100.0%) 12,(2,100.0%) 25} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009902/0.6673, allocations: 453 kB / 0.5055 GB, free: 97.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004649/0.6719, allocations: 2.854 MB / 0.5083 GB, free: 96.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.672, allocations: 0 / 0.5083 GB, free: 96.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00261/0.6746, allocations: 1.946 MB / 0.5102 GB, free: 95.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002936/0.6775, allocations: 0.5465 MB / 0.5107 GB, free: 94.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/0.6885, allocations: 8.394 MB / 0.5189 GB, free: 87.19 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001802/0.6903, allocations: 2.576 MB / 0.5214 GB, free: 84.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008124/0.6911, allocations: 179.4 kB / 0.5216 GB, free: 84.41 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.6912, allocations: 0 / 0.5216 GB, free: 84.41 MB / 378.7 MB Notification: Performance of Templates: time 0.08992/0.7811, allocations: 99.59 MB / 0.6188 GB, free: 0.625 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches