Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 103.4 kB / 16.62 MB, free: 6.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.19/1.19, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00106/0.00106, allocations: 39.38 kB / 300.2 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08087/0.08195, allocations: 49.45 MB / 349.7 MB, free: 4.547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.003763/0.08574, allocations: 2.853 MB / 352.6 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.08753, allocations: 1.223 MB / 353.8 MB, free: 456 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002037/0.08776, allocations: 4 kB / 353.8 MB, free: 452 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002689/0.08805, allocations: 51.62 kB / 353.8 MB, free: 400 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005475/0.08861, allocations: 203.2 kB / 354 MB, free: 196 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002447/0.08886, allocations: 103.9 kB / 354.1 MB, free: 92 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004376/0.08931, allocations: 462.8 kB / 354.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.08948, allocations: 88.64 kB / 354.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002475/0.08974, allocations: 187.4 kB / 354.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000254/0.09, allocations: 219.1 kB / 355.1 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.878e-05/0.09006, allocations: 40 kB / 355.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002516/0.09032, allocations: 159.9 kB / 355.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.964e-05/0.0904, allocations: 91.72 kB / 355.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.09056, allocations: 187.1 kB / 355.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000472/0.09104, allocations: 0.4984 MB / 356 MB, free: 14.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.09105, allocations: 0 / 356 MB, free: 14.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.09106, allocations: 0 / 356 MB, free: 14.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.09107, allocations: 0 / 356 MB, free: 14.18 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001512/0.09259, allocations: 0.7016 MB / 356.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.09264, allocations: 12.03 kB / 356.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.205e-05/0.0927, allocations: 58.73 kB / 356.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.819e-05/0.09279, allocations: 36.55 kB / 356.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003325/0.09313, allocations: 333.2 kB / 357.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.787e-05/0.09319, allocations: 50.77 kB / 357.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.09334, allocations: 44.3 kB / 357.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005404/0.09389, allocations: 320.4 kB / 357.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.09391, allocations: 4 kB / 357.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.09394, allocations: 8 kB / 357.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.09395, allocations: 8 kB / 357.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005908/0.09455, allocations: 306 kB / 357.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.09603, allocations: 1.171 MB / 359.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005172/0.09656, allocations: 293 kB / 359.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002894/0.09686, allocations: 157.7 kB / 359.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.09689, allocations: 7.984 kB / 359.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.09692, allocations: 38.56 kB / 359.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.443e-06/0.09693, allocations: 0 / 359.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.008672/0.1056, allocations: 2.417 MB / 362 MB, free: 7.945 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.1057, allocations: 81.11 kB / 362 MB, free: 7.848 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002773/0.1059, allocations: 289 kB / 362.3 MB, free: 7.555 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.573e-05/0.106, allocations: 33.7 kB / 362.4 MB, free: 7.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.509e-05/0.1061, allocations: 176.3 kB / 362.5 MB, free: 7.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.575e-05/0.1062, allocations: 141.9 kB / 362.7 MB, free: 7.199 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.1063, allocations: 86 kB / 362.7 MB, free: 7.109 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.1064, allocations: 342.8 kB / 363.1 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003659/0.1068, allocations: 160.8 kB / 363.2 MB, free: 6.609 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003854/0.1072, allocations: 230.7 kB / 363.5 MB, free: 6.363 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007387/0.108, allocations: 403.6 kB / 363.9 MB, free: 5.949 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.108, allocations: 0 / 363.9 MB, free: 5.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009006/0.1089, allocations: 492.2 kB / 364.3 MB, free: 5.461 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.1089, allocations: 4 kB / 364.3 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1089, allocations: 15.95 kB / 364.4 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.1089, allocations: 4 kB / 364.4 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005483/0.1095, allocations: 116 kB / 364.5 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.1095, allocations: 4 kB / 364.5 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003524/0.1099, allocations: 35.92 kB / 364.5 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.548e-05/0.1099, allocations: 19.98 kB / 364.5 MB, free: 5.266 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001369/0.11, allocations: 149.7 kB / 364.7 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.101e-05/0.1101, allocations: 31.7 kB / 364.7 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/0.1118, allocations: 0.6564 MB / 365.4 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.1118, allocations: 4 kB / 365.4 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.1118, allocations: 4 kB / 365.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1119, allocations: 3.938 kB / 365.4 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002833/0.1147, allocations: 1.279 MB / 366.7 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1147, allocations: 0 / 366.7 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004139/0.1151, allocations: 87.88 kB / 366.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001472/0.1166, allocations: 276.5 kB / 367 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.697e-05/0.1167, allocations: 15.98 kB / 367 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003541/0.1202, allocations: 2.443 MB / 369.5 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1202, allocations: 0 / 369.5 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1276/0.2478, allocations: 1.004 MB / 370.5 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000185/0.248, allocations: 150 kB / 370.6 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.7e-05/0.2481, allocations: 9.703 kB / 370.6 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004464/0.2485, allocations: 29.41 kB / 370.7 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.2487, allocations: 36.61 kB / 370.7 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.365e-05/0.2487, allocations: 14.25 kB / 370.7 MB, free: 25.46 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000195/0.2489, allocations: 215 kB / 370.9 MB, free: 25.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.12e-07/0.2489, allocations: 1.094 kB / 370.9 MB, free: 25.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005497/0.2495, allocations: 112 kB / 371 MB, free: 25.38 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002397/0.2519, allocations: 1.586 MB / 372.6 MB, free: 24.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.2529, allocations: 450.2 kB / 373.1 MB, free: 24.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2529, allocations: 0 / 373.1 MB, free: 24.51 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000611/0.2535, allocations: 380.9 kB / 373.4 MB, free: 24.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005115/0.254, allocations: 45.81 kB / 373.5 MB, free: 24.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004774/0.2588, allocations: 3.978 MB / 377.5 MB, free: 21.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002049/0.259, allocations: 0.7874 MB / 378.2 MB, free: 21.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002158/0.2593, allocations: 43.42 kB / 378.3 MB, free: 21.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001866/0.2595, allocations: 120.9 kB / 378.4 MB, free: 21.03 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2595, allocations: 0 / 378.4 MB, free: 21.03 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8629/1.122, allocations: 9.336 MB / 387.7 MB, free: 18.27 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002567/1.123, allocations: 262.8 kB / 388 MB, free: 18.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.677/3.8, allocations: 0 / 388 MB, free: 18.01 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,core.B,core.Hstat,core.MagRel,winding.i Variables in the result:core.A,core.B,core.H,core.Heddy,core.Hstat,core.LossPower,core.LossPowerEddy,core.LossPowerStat,core.MagRel,core.Phi,core.T,core.T_heatPort,core.V,core.V_m,core.asc,core.d,core.derHstat,core.includeEddyCurrents,core.l,core.mat.Hc,core.mat.Hsat,core.mat.K,core.mat.M,core.mat.p1,core.mat.p2,core.mat.q,core.mat.r,core.mat.sigma,core.port_n.Phi,core.port_n.V_m,core.port_p.Phi,core.port_p.V_m,core.sigma,core.useHeatPort,der(core.B),der(core.H2),der(core.H3),der(core.H_lim),der(core.Hstat),der(core.MagRel),der(core.P2),der(core.P3),der(core.Phi),der(core.hystF),der(core.hystR),der(winding.Phi_ind),der(winding.Phi_leak),der(winding.V_m),der(winding.i),el_ground.p.i,el_ground.p.v,mag_ground.port.Phi,mag_ground.port.V_m,resistor.LossPower,resistor.R,resistor.R_actual,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha,resistor.i,resistor.n.i,resistor.n.v,resistor.p.i,resistor.p.v,resistor.useHeatPort,resistor.v,time,vSource.V,vSource.f,vSource.i,vSource.n.i,vSource.n.v,vSource.offset,vSource.p.i,vSource.p.v,vSource.phase,vSource.signalSource.amplitude,vSource.signalSource.f,vSource.signalSource.offset,vSource.signalSource.phase,vSource.signalSource.startTime,vSource.signalSource.y,vSource.startTime,vSource.v,winding.A,winding.G_m,winding.L,winding.L_stat,winding.N,winding.Phi,winding.Phi_ind,winding.Phi_leak,winding.Psi,winding.V_m,winding.i,winding.mu_rel,winding.n.i,winding.n.v,winding.p.i,winding.p.v,winding.port_n.Phi,winding.port_n.V_m,winding.port_p.Phi,winding.port_p.V_m,winding.v