Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.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.Components.EddyCurrentLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|converter_e.singlePhaseElectroMagneticConverter.1..Phi.re|converter_e.singlePhaseElectroMagneticConverter.2..Phi.im|loss_m.Phi.im|loss_m.Phi.re",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|converter_e.singlePhaseElectroMagneticConverter.1..Phi.re|converter_e.singlePhaseElectroMagneticConverter.2..Phi.im|loss_m.Phi.im|loss_m.Phi.re",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001621/0.001621, allocations: 175.1 kB / 16.72 MB, free: 5.055 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.395/1.395, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0008414/0.0008415, allocations: 95.19 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004559/0.0004559, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2121/0.2126, allocations: 47.58 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.005271/0.2179, allocations: 6.241 MB / 381.3 MB, free: 40.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00373/0.2217, allocations: 2.085 MB / 383.4 MB, free: 38.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007849/0.2225, allocations: 44.66 kB / 383.5 MB, free: 38.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007245/0.2232, allocations: 312.7 kB / 383.8 MB, free: 38.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001779/0.225, allocations: 0.7468 MB / 384.5 MB, free: 37.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006496/0.2257, allocations: 263.7 kB / 384.8 MB, free: 37.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003132/0.2288, allocations: 3.172 MB / 387.9 MB, free: 35.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001993/0.2308, allocations: 2.381 MB / 390.3 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001338/0.2322, allocations: 1.012 MB / 391.3 MB, free: 32.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00124/0.2334, allocations: 1.334 MB / 392.7 MB, free: 31.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002097/0.2336, allocations: 156 kB / 392.8 MB, free: 30.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006925/0.2343, allocations: 267.9 kB / 393.1 MB, free: 30.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000379/0.2347, allocations: 0.6345 MB / 393.7 MB, free: 29.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001023/0.2357, allocations: 1.288 MB / 395 MB, free: 28.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002425/0.2382, allocations: 3.718 MB / 398.7 MB, free: 24.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.2382, allocations: 0 / 398.7 MB, free: 24.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2382, allocations: 0 / 398.7 MB, free: 24.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.885e-05/0.2383, allocations: 0 / 398.7 MB, free: 24.94 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: 689 * Number of variables: 689 Notification: Performance of Generate backend data structure: time 0.006206/0.2445, allocations: 3.126 MB / 401.9 MB, free: 21.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.2446, allocations: 12.03 kB / 401.9 MB, free: 21.74 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003299/0.2479, allocations: 0.6882 MB / 402.6 MB, free: 21.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002503/0.2504, allocations: 1.671 MB / 404.2 MB, free: 19.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.461e-05/0.2505, allocations: 201.7 kB / 404.4 MB, free: 19.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003268/0.2509, allocations: 264 kB / 404.7 MB, free: 18.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004741/0.2556, allocations: 3.599 MB / 408.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.817e-05/0.2557, allocations: 4 kB / 408.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002108/0.2559, allocations: 111.9 kB / 408.4 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.041e-05/0.256, allocations: 109.3 kB / 408.5 MB, free: 14.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004208/0.2602, allocations: 3.097 MB / 411.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0125/0.2727, allocations: 10.56 MB / 422.2 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004477/0.2772, allocations: 4.673 MB / 426.8 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001376/0.2786, allocations: 0.9531 MB / 427.8 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003919/0.2826, allocations: 2.468 MB / 430.3 MB, free: 8.133 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.2826, allocations: 47.44 kB / 430.3 MB, free: 8.078 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 2.705e-06/0.2826, allocations: 0 / 430.3 MB, free: 8.078 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.005932/0.2886, allocations: 2.75 MB / 433.1 MB, free: 5.277 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.2887, allocations: 89.92 kB / 433.1 MB, free: 5.172 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001899/0.2906, allocations: 1.37 MB / 434.5 MB, free: 3.789 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.505e-05/0.2907, allocations: 45.7 kB / 434.6 MB, free: 3.738 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000808/0.2915, allocations: 1.168 MB / 435.7 MB, free: 2.555 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002741/0.2918, allocations: 358.8 kB / 436.1 MB, free: 2.199 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.239e-05/0.2918, allocations: 24 kB / 436.1 MB, free: 2.176 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.292, allocations: 353.9 kB / 436.4 MB, free: 1.824 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009213/0.2929, allocations: 0.5803 MB / 437 MB, free: 1.242 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001109/0.294, allocations: 0.8692 MB / 437.9 MB, free: 268 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002049/0.2961, allocations: 1.508 MB / 439.4 MB, free: 14.64 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.2961, allocations: 4 kB / 439.4 MB, free: 14.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003247/0.2994, allocations: 2.011 MB / 441.4 MB, free: 12.6 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.2994, allocations: 8 kB / 441.4 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.2994, allocations: 8 kB / 441.4 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009436/0.3004, allocations: 407.2 kB / 441.8 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007894/0.3012, allocations: 227.6 kB / 442 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006621/0.3078, allocations: 6.09 MB / 448.1 MB, free: 5.609 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/0.3089, allocations: 150.8 kB / 448.3 MB, free: 5.461 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.214e-05/0.309, allocations: 48 kB / 448.3 MB, free: 5.414 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (110): * Single equations (assignments): 108 * Array equations: 0 * 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 {(2,100.0%) 19,(2,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001446/0.3104, allocations: 0.8642 MB / 449.2 MB, free: 4.539 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002192/0.3106, allocations: 134.3 kB / 449.3 MB, free: 4.406 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00281/0.3135, allocations: 1.698 MB / 451 MB, free: 2.684 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.3135, allocations: 12 kB / 451 MB, free: 2.672 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.3135, allocations: 8 kB / 451 MB, free: 2.664 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.3135, allocations: 3.984 kB / 451.1 MB, free: 2.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005809/0.3193, allocations: 4.007 MB / 455.1 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.3194, allocations: 4 kB / 455.1 MB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005558/0.3199, allocations: 144 kB / 455.2 MB, free: 14.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008637/0.3208, allocations: 393.3 kB / 455.6 MB, free: 14.03 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-05/0.3209, allocations: 31.98 kB / 455.6 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006501/0.3274, allocations: 6.085 MB / 461.7 MB, free: 7.645 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.3274, allocations: 11.91 kB / 461.7 MB, free: 7.633 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003725/0.3311, allocations: 2.524 MB / 464.2 MB, free: 5.066 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003949/0.3316, allocations: 243.2 kB / 464.5 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001573/0.3317, allocations: 31.98 kB / 464.5 MB, free: 4.777 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007014/0.3324, allocations: 103.8 kB / 464.6 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002205/0.3327, allocations: 108.6 kB / 464.7 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.023e-05/0.3327, allocations: 32 kB / 464.7 MB, free: 4.539 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001266/0.334, allocations: 0.9513 MB / 465.7 MB, free: 3.582 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.334, allocations: 0 / 465.7 MB, free: 3.582 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001716/0.3357, allocations: 0.6688 MB / 466.4 MB, free: 2.91 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (converter_e.singlePhaseElectroMagneticConverter[3].Phi.re,converter_e.singlePhaseElectroMagneticConverter[3].Phi.im,converter_m.singlePhaseElectroMagneticConverter[3].Phi.re,converter_m.singlePhaseElectroMagneticConverter[3].Phi.im) * 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 (64): * Single equations (assignments): 62 * Array equations: 0 * 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 {(2,100.0%) 21,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002575/0.336, allocations: 159 kB / 466.5 MB, free: 2.746 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002859/0.3389, allocations: 1.823 MB / 468.3 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.3389, allocations: 4.062 kB / 468.3 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001711/0.3406, allocations: 1.152 MB / 469.5 MB, free: 15.72 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001682/0.3423, allocations: 291.7 kB / 469.8 MB, free: 15.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007252/0.3496, allocations: 5.522 MB / 475.3 MB, free: 9.848 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001735/0.3513, allocations: 2.124 MB / 477.4 MB, free: 7.691 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004719/0.3518, allocations: 91.42 kB / 477.5 MB, free: 7.602 MB / 362.7 MB Notification: Performance of SimCode: time 8.32e-07/0.3518, allocations: 0 / 477.5 MB, free: 7.602 MB / 362.7 MB Notification: Performance of Templates: time 0.2147/0.5666, allocations: 52.31 MB / 0.5174 GB, free: 89.26 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/Components/EddyCurrentLosses/EddyCurrentLosses.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches