Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001403/0.001403, allocations: 106.2 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.001706/0.001706, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001185, allocations: 65.45 kB / 306.6 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09035/0.09154, allocations: 50.53 MB / 357.1 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004047/0.09562, allocations: 2.871 MB / 360 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001976/0.09762, allocations: 1.285 MB / 361.3 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002242/0.09787, allocations: 4 kB / 361.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002817/0.09818, allocations: 55.61 kB / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000587/0.09878, allocations: 199.2 kB / 361.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002865/0.09907, allocations: 111.9 kB / 361.6 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005297/0.09961, allocations: 467 kB / 362.1 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002054/0.09983, allocations: 84.62 kB / 362.2 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004431/0.1003, allocations: 191.4 kB / 362.3 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004068/0.1007, allocations: 219.2 kB / 362.6 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000119/0.1008, allocations: 40 kB / 362.6 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003754/0.1012, allocations: 163.8 kB / 362.8 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.661e-05/0.1013, allocations: 95.66 kB / 362.8 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001856/0.1015, allocations: 187.2 kB / 363 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00054/0.1021, allocations: 0.5023 MB / 363.5 MB, free: 7.812 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1021, allocations: 0 / 363.5 MB, free: 7.812 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1021, allocations: 0 / 363.5 MB, free: 7.812 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.257e-05/0.1021, allocations: 0 / 363.5 MB, free: 7.812 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.001783/0.1039, allocations: 0.7171 MB / 364.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.1039, allocations: 8.031 kB / 364.3 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.819e-05/0.104, allocations: 62.73 kB / 364.3 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002141/0.1042, allocations: 48.45 kB / 364.4 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004216/0.1047, allocations: 321.3 kB / 364.7 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.057e-05/0.1048, allocations: 54.77 kB / 364.7 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.1049, allocations: 40.3 kB / 364.8 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006244/0.1056, allocations: 324.4 kB / 365.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.1056, allocations: 0 / 365.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.358e-05/0.1056, allocations: 12 kB / 365.1 MB, free: 6.125 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.1056, allocations: 4 kB / 365.1 MB, free: 6.121 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006359/0.1063, allocations: 306 kB / 365.4 MB, free: 5.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.1079, allocations: 1.164 MB / 366.6 MB, free: 4.578 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005911/0.1085, allocations: 299.3 kB / 366.9 MB, free: 4.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003094/0.1088, allocations: 161.6 kB / 367 MB, free: 4.105 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.312e-05/0.1089, allocations: 7.984 kB / 367 MB, free: 4.098 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.1089, allocations: 34.56 kB / 367.1 MB, free: 4.055 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.463e-06/0.1089, allocations: 4 kB / 367.1 MB, free: 4.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.009077/0.118, allocations: 2.42 MB / 369.5 MB, free: 1.555 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/0.1181, allocations: 81.11 kB / 369.6 MB, free: 1.457 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003181/0.1184, allocations: 296.9 kB / 369.9 MB, free: 1.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.54e-05/0.1184, allocations: 33.7 kB / 369.9 MB, free: 1.113 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.1185, allocations: 168.4 kB / 370 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.1187, allocations: 149.8 kB / 370.2 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/0.1188, allocations: 78.11 kB / 370.3 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.1189, allocations: 342.8 kB / 370.6 MB, free: 380 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003698/0.1193, allocations: 160.8 kB / 370.8 MB, free: 220 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1605/0.2798, allocations: 226.7 kB / 371 MB, free: 20.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000966/0.2808, allocations: 402.5 kB / 371.4 MB, free: 20.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.2808, allocations: 1.688 kB / 371.4 MB, free: 20.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001022/0.2818, allocations: 492.3 kB / 371.9 MB, free: 20.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.2819, allocations: 7.312 kB / 371.9 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.2819, allocations: 1.094 kB / 371.9 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.2819, allocations: 4.5 kB / 371.9 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006251/0.2825, allocations: 115.9 kB / 372 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.2826, allocations: 7.719 kB / 372 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004012/0.283, allocations: 35.5 kB / 372 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.154e-05/0.283, allocations: 18.17 kB / 372 MB, free: 20.11 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.0001673/0.2832, allocations: 162 kB / 372.2 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.229e-05/0.2833, allocations: 31.53 kB / 372.2 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001837/0.2851, allocations: 0.6452 MB / 372.9 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.2852, allocations: 5.219 kB / 372.9 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2852, allocations: 1.156 kB / 372.9 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.2852, allocations: 5.047 kB / 372.9 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003172/0.2884, allocations: 1.28 MB / 374.2 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.2884, allocations: 0 / 374.2 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000439/0.2888, allocations: 93.47 kB / 374.3 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00158/0.2904, allocations: 268.8 kB / 374.5 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.676e-05/0.2905, allocations: 17.22 kB / 374.5 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003421/0.2939, allocations: 2.436 MB / 377 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2939, allocations: 5.25 kB / 377 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002067/0.296, allocations: 1.009 MB / 378 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001351/0.2961, allocations: 149.1 kB / 378.1 MB, free: 16.74 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.585e-05/0.2962, allocations: 7.812 kB / 378.1 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004423/0.2966, allocations: 34.06 kB / 378.2 MB, free: 16.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.2968, allocations: 37.41 kB / 378.2 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.351e-05/0.2968, allocations: 16.5 kB / 378.2 MB, free: 16.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001872/0.297, allocations: 212.9 kB / 378.4 MB, free: 16.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.297, allocations: 0 / 378.4 MB, free: 16.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005177/0.2975, allocations: 117.9 kB / 378.6 MB, free: 16.57 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.00235/0.2999, allocations: 1.598 MB / 380.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009786/0.3009, allocations: 442 kB / 380.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3009, allocations: 4.375 kB / 380.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005936/0.3015, allocations: 382.9 kB / 381 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005036/0.302, allocations: 41.11 kB / 381 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004963/0.307, allocations: 4.004 MB / 385 MB, free: 12.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002216/0.3072, allocations: 0.7869 MB / 385.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000218/0.3074, allocations: 40.2 kB / 385.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002013/0.3076, allocations: 120.9 kB / 385.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3076, allocations: 0 / 385.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.509/2.817, allocations: 9.375 MB / 395.3 MB, free: 8.293 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/2.817, allocations: 262.1 kB / 395.6 MB, free: 8.035 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.064/5.881, allocations: 0 / 395.6 MB, free: 8.035 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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.continuous,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