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.001084/0.001084, allocations: 102 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001304/0.001304, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 61.98 kB / 306.4 MB, free: 0.9844 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09096/0.09216, allocations: 50.53 MB / 356.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004022/0.09621, allocations: 2.879 MB / 359.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002183/0.09842, allocations: 1.309 MB / 361.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002421/0.09869, allocations: 4 kB / 361.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003152/0.09904, allocations: 55.61 kB / 361.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005661/0.09961, allocations: 191.2 kB / 361.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002803/0.09991, allocations: 107.9 kB / 361.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004909/0.1004, allocations: 439 kB / 361.9 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001713/0.1006, allocations: 85.06 kB / 361.9 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003356/0.1009, allocations: 163.5 kB / 362.1 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002928/0.1012, allocations: 211.1 kB / 362.3 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.009e-05/0.1013, allocations: 28 kB / 362.3 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003026/0.1016, allocations: 147.9 kB / 362.5 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.702e-05/0.1017, allocations: 79.66 kB / 362.6 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.1019, allocations: 171.1 kB / 362.7 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00054/0.1024, allocations: 494.4 kB / 363.2 MB, free: 8.102 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1025, allocations: 0 / 363.2 MB, free: 8.102 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.1025, allocations: 4 kB / 363.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.1025, allocations: 0 / 363.2 MB, free: 8.098 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.001742/0.1042, allocations: 0.7171 MB / 363.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.1043, allocations: 8.031 kB / 363.9 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.339e-05/0.1044, allocations: 62.73 kB / 364 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001935/0.1046, allocations: 48.45 kB / 364 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004129/0.105, allocations: 329.3 kB / 364.4 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.396e-05/0.1051, allocations: 46.83 kB / 364.4 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/0.1052, allocations: 44.3 kB / 364.5 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005877/0.1058, allocations: 320.4 kB / 364.8 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.1058, allocations: 4 kB / 364.8 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/0.1059, allocations: 12 kB / 364.8 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.1059, allocations: 8 kB / 364.8 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006672/0.1066, allocations: 306 kB / 365.1 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.1083, allocations: 1.164 MB / 366.3 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005975/0.1089, allocations: 297 kB / 366.5 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000328/0.1093, allocations: 157.6 kB / 366.7 MB, free: 4.387 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.961e-05/0.1093, allocations: 11.97 kB / 366.7 MB, free: 4.375 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.1093, allocations: 38.56 kB / 366.7 MB, free: 4.328 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.853e-06/0.1093, allocations: 0 / 366.7 MB, free: 4.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.009391/0.1187, allocations: 2.413 MB / 369.2 MB, free: 1.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.765e-05/0.1188, allocations: 85.11 kB / 369.2 MB, free: 1.738 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003343/0.1191, allocations: 296.9 kB / 369.5 MB, free: 1.434 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.882e-05/0.1192, allocations: 33.7 kB / 369.6 MB, free: 1.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.1193, allocations: 168.4 kB / 369.7 MB, free: 1.227 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.1194, allocations: 153.8 kB / 369.9 MB, free: 1.074 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.1196, allocations: 82.11 kB / 370 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.1197, allocations: 338.8 kB / 370.3 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003904/0.1201, allocations: 168.8 kB / 370.5 MB, free: 496 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004182/0.1206, allocations: 222.7 kB / 370.7 MB, free: 248 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1675/0.2881, allocations: 402.3 kB / 371.1 MB, free: 20.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.2881, allocations: 0.5 kB / 371.1 MB, free: 20.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001096/0.2892, allocations: 491.5 kB / 371.5 MB, free: 20.13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.2892, allocations: 6.312 kB / 371.6 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.2892, allocations: 3.094 kB / 371.6 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.2893, allocations: 3.75 kB / 371.6 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000614/0.2899, allocations: 116.5 kB / 371.7 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.2899, allocations: 4.531 kB / 371.7 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004015/0.2903, allocations: 33.94 kB / 371.7 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.919e-05/0.2904, allocations: 18.11 kB / 371.7 MB, free: 20.13 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.0001775/0.2905, allocations: 162.3 kB / 371.9 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.818e-05/0.2907, allocations: 31 kB / 371.9 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00189/0.2925, allocations: 0.6517 MB / 372.6 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-06/0.2926, allocations: 5.984 kB / 372.6 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.2926, allocations: 1.156 kB / 372.6 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.2926, allocations: 2.438 kB / 372.6 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003283/0.2959, allocations: 1.28 MB / 373.9 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.2959, allocations: 1.625 kB / 373.9 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004593/0.2964, allocations: 94.41 kB / 374 MB, free: 19.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001709/0.2981, allocations: 267.5 kB / 374.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.742e-05/0.2982, allocations: 12.61 kB / 374.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003573/0.3017, allocations: 2.215 MB / 376.4 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3018, allocations: 0 / 376.4 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002266/0.304, allocations: 1.014 MB / 377.5 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001697/0.3042, allocations: 149.8 kB / 377.6 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.897e-05/0.3043, allocations: 7.5 kB / 377.6 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004398/0.3047, allocations: 27.72 kB / 377.6 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.3049, allocations: 35.36 kB / 377.7 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.36e-05/0.3049, allocations: 14.75 kB / 377.7 MB, free: 17.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002215/0.3051, allocations: 218.6 kB / 377.9 MB, free: 16.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3052, allocations: 5.406 kB / 377.9 MB, free: 16.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005775/0.3057, allocations: 112 kB / 378 MB, free: 16.86 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.002513/0.3083, allocations: 1.591 MB / 379.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009371/0.3092, allocations: 429.5 kB / 380 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3092, allocations: 3.938 kB / 380 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006126/0.3098, allocations: 372.6 kB / 380.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005617/0.3104, allocations: 40.89 kB / 380.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005122/0.3155, allocations: 3.996 MB / 384.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002215/0.3158, allocations: 0.7876 MB / 385.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002478/0.316, allocations: 41.56 kB / 385.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002028/0.3163, allocations: 115.9 kB / 385.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3163, allocations: 0 / 385.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02/0.3363, allocations: 9.063 MB / 394.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001325/0.3364, allocations: 254.6 kB / 394.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.882/2.219, allocations: 0 / 394.7 MB, free: 8.547 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