Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001243/0.001243, allocations: 106.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001215/0.001215, allocations: 205.8 kB / 18.27 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.207/1.207, allocations: 227.4 MB / 246.4 MB, free: 10.84 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002595/0.002594, allocations: 60.06 kB / 306.6 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1033, allocations: 50.53 MB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.008162/0.1115, allocations: 7.794 MB / 364.9 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004099/0.1156, allocations: 2.429 MB / 367.3 MB, free: 4.035 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007918/0.1165, allocations: 51.81 kB / 367.4 MB, free: 3.984 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001026/0.1175, allocations: 385.9 kB / 367.7 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002167/0.1197, allocations: 0.7699 MB / 368.5 MB, free: 2.832 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009672/0.1207, allocations: 363.4 kB / 368.9 MB, free: 2.477 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1592/0.2799, allocations: 3.228 MB / 372.1 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004129/0.284, allocations: 2.894 MB / 375 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001852/0.2859, allocations: 1.424 MB / 376.4 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001911/0.2878, allocations: 1.735 MB / 378.1 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000433/0.2883, allocations: 359.5 kB / 378.5 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008509/0.2891, allocations: 491 kB / 379 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006203/0.2898, allocations: 0.9063 MB / 379.9 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001373/0.2911, allocations: 1.617 MB / 381.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003827/0.295, allocations: 4.655 MB / 386.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.295, allocations: 0 / 386.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.295, allocations: 1.031 kB / 386.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.47e-05/0.2951, allocations: 1.281 kB / 386.2 MB, free: 5.824 MB / 302.1 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.007084/0.3022, allocations: 3.653 MB / 389.8 MB, free: 3.895 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.3022, allocations: 10.09 kB / 389.8 MB, free: 3.895 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005264/0.3028, allocations: 433.4 kB / 390.2 MB, free: 3.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003641/0.3064, allocations: 0.7517 MB / 391 MB, free: 3.254 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002444/0.3089, allocations: 1.785 MB / 392.8 MB, free: 2.109 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.309, allocations: 197 kB / 393 MB, free: 2.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003342/0.3093, allocations: 270.5 kB / 393.2 MB, free: 1.926 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004684/0.314, allocations: 3.621 MB / 396.9 MB, free: 15.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.544e-05/0.3141, allocations: 0 / 396.9 MB, free: 15.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002427/0.3143, allocations: 113.5 kB / 397 MB, free: 15.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.921e-05/0.3144, allocations: 102.9 kB / 397.1 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004369/0.3188, allocations: 3.101 MB / 400.2 MB, free: 13.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01524/0.334, allocations: 10.36 MB / 410.5 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004472/0.3385, allocations: 4.568 MB / 415.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001302/0.3399, allocations: 0.9566 MB / 416.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00383/0.3437, allocations: 2.625 MB / 418.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.3438, allocations: 47.44 kB / 418.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of pre-optimization done (n=104): time 2.645e-06/0.3438, allocations: 2.625 kB / 418.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=104): time 0.005764/0.3495, allocations: 2.653 MB / 421.4 MB, free: 7.812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.3496, allocations: 97.53 kB / 421.5 MB, free: 7.703 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001885/0.3515, allocations: 1.403 MB / 422.9 MB, free: 6.289 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.924e-05/0.3516, allocations: 41.7 kB / 422.9 MB, free: 6.242 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006593/0.3522, allocations: 1.179 MB / 424.1 MB, free: 5.051 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002458/0.3525, allocations: 356.5 kB / 424.4 MB, free: 4.703 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003111/0.3528, allocations: 222.8 kB / 424.7 MB, free: 4.477 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.3529, allocations: 353.9 kB / 425 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008346/0.3538, allocations: 0.5608 MB / 425.6 MB, free: 3.566 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009891/0.3548, allocations: 0.8524 MB / 426.4 MB, free: 2.602 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001827/0.3566, allocations: 1.456 MB / 427.9 MB, free: 1.062 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.3566, allocations: 0 / 427.9 MB, free: 1.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003002/0.3596, allocations: 1.973 MB / 429.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.3597, allocations: 8 kB / 429.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.3597, allocations: 8 kB / 429.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008873/0.3606, allocations: 404.8 kB / 430.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007597/0.3614, allocations: 221.7 kB / 430.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00678/0.3681, allocations: 6.527 MB / 437 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.3693, allocations: 138.7 kB / 437.1 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001429/0.3694, allocations: 51.98 kB / 437.2 MB, free: 7.578 MB / 350.1 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 (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 {(2,19,100.0%), (2,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001536/0.371, allocations: 0.8739 MB / 438.1 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003863/0.3714, allocations: 138.3 kB / 438.2 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002886/0.3743, allocations: 1.653 MB / 439.9 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.3743, allocations: 11.28 kB / 439.9 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-05/0.3743, allocations: 11.98 kB / 439.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.3743, allocations: 3.984 kB / 439.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0065/0.3808, allocations: 3.929 MB / 443.8 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.3809, allocations: 0 / 443.8 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000546/0.3814, allocations: 131.4 kB / 443.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008868/0.3823, allocations: 401.5 kB / 444.3 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.684e-05/0.3824, allocations: 35.97 kB / 444.4 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00666/0.3891, allocations: 6.502 MB / 450.9 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3891, allocations: 3.375 kB / 450.9 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003743/0.3929, allocations: 2.486 MB / 453.4 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005222/0.3934, allocations: 239.2 kB / 453.6 MB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003073/0.3937, allocations: 28 kB / 453.6 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008613/0.3946, allocations: 87.91 kB / 453.7 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.3948, allocations: 96.67 kB / 453.8 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.731e-05/0.3949, allocations: 35.64 kB / 453.8 MB, free: 6.621 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001388/0.3963, allocations: 0.9795 MB / 454.8 MB, free: 5.637 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3963, allocations: 0 / 454.8 MB, free: 5.637 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001896/0.3982, allocations: 0.6844 MB / 455.5 MB, free: 4.949 MB / 366.1 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,loss_m.Phi.re,loss_m.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 (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 {(2,21,100.0%), (2,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003855/0.4021, allocations: 3.082 MB / 458.6 MB, free: 1.852 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003078/0.4052, allocations: 1.928 MB / 460.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.461e-06/0.4052, allocations: 1.188 kB / 460.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00166/0.4068, allocations: 1.138 MB / 461.6 MB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/0.4085, allocations: 317.5 kB / 462 MB, free: 14.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02424/0.4327, allocations: 18.23 MB / 480.2 MB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001845/0.4346, allocations: 2.184 MB / 482.4 MB, free: 9.344 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009088/0.4355, allocations: 343 kB / 482.7 MB, free: 9.004 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009362/0.4365, allocations: 0.8781 MB / 483.6 MB, free: 8.125 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4365, allocations: 0 / 483.6 MB, free: 8.125 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.09/1.526, allocations: 37.81 MB / 0.5092 GB, free: 2.746 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003394/1.526, allocations: 254.4 kB / 0.5094 GB, free: 2.488 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.61/4.136, allocations: 4 kB / 0.5094 GB, free: 2.484 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/Components/EddyCurrentLosses/EddyCurrentLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches