Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 104.7 kB / 18.49 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001964/0.001964, allocations: 189 kB / 21.43 MB, free: 1.676 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 225.6 MB / 249.8 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 55.92 kB / 366.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09658/0.09805, allocations: 52.13 MB / 418.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.008984/0.107, allocations: 7.298 MB / 425.8 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004369/0.1114, allocations: 2.184 MB / 428 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009247/0.1123, allocations: 67.56 kB / 428 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001077/0.1134, allocations: 461 kB / 428.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00244/0.1158, allocations: 0.9091 MB / 429.4 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008634/0.1167, allocations: 355.4 kB / 429.7 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003825/0.1205, allocations: 3.163 MB / 432.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002556/0.1231, allocations: 2.126 MB / 435 MB, free: 11.97 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001854/0.1249, allocations: 1.449 MB / 436.5 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002206/0.1272, allocations: 1.708 MB / 438.2 MB, free: 8.801 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004718/0.1276, allocations: 356 kB / 438.5 MB, free: 8.453 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009109/0.1285, allocations: 483.9 kB / 439 MB, free: 7.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007875/0.1293, allocations: 0.9075 MB / 439.9 MB, free: 7.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001721/0.131, allocations: 1.61 MB / 441.5 MB, free: 5.453 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00484/0.1359, allocations: 4.687 MB / 446.2 MB, free: 0.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.1359, allocations: 4 kB / 446.2 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1359, allocations: 0 / 446.2 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001162/0.136, allocations: 3.984 kB / 446.2 MB, free: 0.7422 MB / 366.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.2123/0.3483, allocations: 3.689 MB / 449.9 MB, free: 28.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.3484, allocations: 12.19 kB / 449.9 MB, free: 28.42 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.967e-05/0.3484, allocations: 78.56 kB / 450 MB, free: 28.4 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005083/0.3489, allocations: 443.4 kB / 450.4 MB, free: 28.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00334/0.3523, allocations: 0.7045 MB / 451.1 MB, free: 28.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002967/0.3553, allocations: 1.805 MB / 452.9 MB, free: 27.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/0.3554, allocations: 201 kB / 453.1 MB, free: 27.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003844/0.3558, allocations: 264.8 kB / 453.4 MB, free: 27.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006098/0.3619, allocations: 3.632 MB / 457 MB, free: 26.33 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.777e-05/0.3619, allocations: 4.969 kB / 457 MB, free: 26.33 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000226/0.3621, allocations: 106.8 kB / 457.1 MB, free: 26.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001018/0.3622, allocations: 104.9 kB / 457.2 MB, free: 26.24 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005188/0.3674, allocations: 3.107 MB / 460.3 MB, free: 25.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01371/0.3811, allocations: 10.28 MB / 470.6 MB, free: 18.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003784/0.3849, allocations: 4.487 MB / 475.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001247/0.3862, allocations: 0.8833 MB / 476 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003411/0.3896, allocations: 2.423 MB / 478.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.341e-05/0.3896, allocations: 49.03 kB / 478.5 MB, free: 12.31 MB / 366.1 MB Notification: Performance of pre-optimization done (n=108): time 2.445e-06/0.3896, allocations: 0 / 478.5 MB, free: 12.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=171): time 0.01383/0.4034, allocations: 7.195 MB / 485.7 MB, free: 7.691 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.878e-05/0.4035, allocations: 99.11 kB / 485.8 MB, free: 7.574 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001849/0.4053, allocations: 1.378 MB / 487.1 MB, free: 6.184 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.4054, allocations: 53.7 kB / 487.2 MB, free: 6.125 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005371/0.406, allocations: 1.196 MB / 488.4 MB, free: 4.922 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003263/0.4063, allocations: 0.6062 MB / 489 MB, free: 4.328 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004119/0.4067, allocations: 295.5 kB / 489.3 MB, free: 4.031 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.343e-05/0.4068, allocations: 305.1 kB / 489.6 MB, free: 3.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/0.408, allocations: 0.8861 MB / 490.5 MB, free: 2.844 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001306/0.4093, allocations: 1.208 MB / 491.7 MB, free: 1.523 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002826/0.4121, allocations: 2.188 MB / 493.9 MB, free: 15.22 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.4121, allocations: 4 kB / 493.9 MB, free: 15.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.005533/0.4176, allocations: 3.052 MB / 496.9 MB, free: 12.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.474e-05/0.4177, allocations: 16.61 kB / 496.9 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.22e-05/0.4177, allocations: 8 kB / 496.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002076/0.4198, allocations: 0.7873 MB / 497.7 MB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/0.4209, allocations: 279.6 kB / 498 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01673/0.4377, allocations: 13.37 MB / 0.4994 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001485/0.4392, allocations: 92.73 kB / 0.4995 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002532/0.4394, allocations: 67.98 kB / 0.4995 GB, free: 13 MB / 398.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 (135): * Single equations (assignments): 131 * Array equations: 0 * 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,19,100.0%), (2,19,100.0%), (2,21,100.0%), (2,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001908/0.4413, allocations: 0.9267 MB / 0.5004 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005533/0.4419, allocations: 175 kB / 0.5006 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005556/0.4474, allocations: 2.794 MB / 0.5033 GB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/0.4475, allocations: 22.84 kB / 0.5034 GB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.583e-05/0.4475, allocations: 16 kB / 0.5034 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.84e-05/0.4475, allocations: 7.969 kB / 0.5034 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01103/0.4585, allocations: 5.761 MB / 0.509 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.4585, allocations: 0.5625 kB / 0.509 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008684/0.4594, allocations: 195.7 kB / 0.5092 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001882/0.4613, allocations: 0.7778 MB / 0.51 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001187/0.4614, allocations: 47.98 kB / 0.51 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01622/0.4776, allocations: 13.21 MB / 0.5229 GB, free: 4.449 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.4776, allocations: 7.969 kB / 0.5229 GB, free: 4.441 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006996/0.4846, allocations: 4.121 MB / 0.5269 GB, free: 280 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005124/0.4851, allocations: 252.1 kB / 0.5272 GB, free: 8 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002014/0.4853, allocations: 39.98 kB / 0.5272 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.4863, allocations: 111.9 kB / 0.5273 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004284/0.4868, allocations: 162.2 kB / 0.5275 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.4869, allocations: 55.97 kB / 0.5275 GB, free: 15.65 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001368/0.4883, allocations: 0.9552 MB / 0.5285 GB, free: 14.69 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4883, allocations: 0 / 0.5285 GB, free: 14.69 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002286/0.4905, allocations: 0.6093 MB / 0.5291 GB, free: 14.08 MB / 430.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 (91): * Single equations (assignments): 87 * Array equations: 0 * 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,20,100.0%), (2,21,100.0%), (2,18,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.007099/0.4976, allocations: 4.744 MB / 0.5337 GB, free: 9.277 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005541/0.5032, allocations: 2.989 MB / 0.5366 GB, free: 6.234 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.5032, allocations: 320 / 0.5366 GB, free: 6.234 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003579/0.5068, allocations: 1.975 MB / 0.5385 GB, free: 4.203 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002616/0.5094, allocations: 324.9 kB / 0.5388 GB, free: 3.891 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03683/0.5462, allocations: 19.49 MB / 0.5579 GB, free: 15.96 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003129/0.5493, allocations: 2.305 MB / 0.5601 GB, free: 13.61 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001187/0.5505, allocations: 397.1 kB / 0.5605 GB, free: 13.22 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001392/0.5519, allocations: 0.9484 MB / 0.5614 GB, free: 12.27 MB / 462.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5519, allocations: 0 / 0.5614 GB, free: 12.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1051/0.657, allocations: 47.84 MB / 0.6082 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.4/22.06, allocations: 0.625 kB / 0.6082 GB, free: 12.84 MB / 0.4981 GB " [Timeout remaining time 638] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses_fmu --startTime=0 --stopTime=40 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 25.666015509981662]