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.001056/0.001056, allocations: 107.2 kB / 16.92 MB, free: 5.77 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.001161/0.001161, allocations: 191.5 kB / 17.85 MB, free: 5.168 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.332/1.332, allocations: 222.9 MB / 241.6 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009496/0.0009497, allocations: 53.86 kB / 300.7 MB, free: 5.801 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08219/0.08315, allocations: 49.44 MB / 350.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004154/0.08734, allocations: 2.812 MB / 353 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001905/0.08927, allocations: 1.234 MB / 354.2 MB, free: 280 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002126/0.0895, allocations: 4 kB / 354.2 MB, free: 276 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002566/0.08978, allocations: 63.42 kB / 354.3 MB, free: 212 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005529/0.09034, allocations: 227 kB / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002481/0.0906, allocations: 123.8 kB / 354.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004145/0.09103, allocations: 454.9 kB / 355.1 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.09119, allocations: 92.62 kB / 355.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002477/0.09145, allocations: 187.3 kB / 355.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002761/0.09173, allocations: 219.2 kB / 355.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.316e-05/0.0918, allocations: 40 kB / 355.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002797/0.09209, allocations: 155.9 kB / 355.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.515e-05/0.09218, allocations: 103.6 kB / 355.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001552/0.09235, allocations: 183.2 kB / 356 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004742/0.09283, allocations: 0.4945 MB / 356.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.09284, allocations: 0 / 356.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.09285, allocations: 0 / 356.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.09286, allocations: 4 kB / 356.5 MB, free: 13.95 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.001502/0.09437, allocations: 0.7015 MB / 357.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.09441, allocations: 12.03 kB / 357.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.545e-05/0.09448, allocations: 62.72 kB / 357.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.791e-05/0.09457, allocations: 32.56 kB / 357.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003508/0.09493, allocations: 329.3 kB / 357.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.81e-05/0.09499, allocations: 50.77 kB / 357.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.09514, allocations: 44.23 kB / 357.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005374/0.09568, allocations: 320.5 kB / 358.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.09571, allocations: 4 kB / 358.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.923e-05/0.09574, allocations: 8 kB / 358.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.09576, allocations: 8 kB / 358.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006252/0.09639, allocations: 302 kB / 358.4 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.09795, allocations: 1.167 MB / 359.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005618/0.09852, allocations: 304.9 kB / 359.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003041/0.09884, allocations: 164.5 kB / 360 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.09887, allocations: 7.984 kB / 360 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.0989, allocations: 38.56 kB / 360 MB, free: 10.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.453e-06/0.09891, allocations: 0 / 360 MB, free: 10.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.008695/0.1076, allocations: 2.412 MB / 362.5 MB, free: 7.723 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.1077, allocations: 85.05 kB / 362.5 MB, free: 7.621 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002939/0.108, allocations: 285 kB / 362.8 MB, free: 7.332 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.393e-05/0.108, allocations: 29.7 kB / 362.8 MB, free: 7.297 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.1081, allocations: 176.4 kB / 363 MB, free: 7.121 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.1082, allocations: 145.8 kB / 363.2 MB, free: 6.977 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/0.1084, allocations: 82.02 kB / 363.2 MB, free: 6.891 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.1085, allocations: 346.7 kB / 363.6 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003728/0.1089, allocations: 156.8 kB / 363.7 MB, free: 6.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003982/0.1093, allocations: 230.6 kB / 364 MB, free: 6.145 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007636/0.11, allocations: 407.6 kB / 364.4 MB, free: 5.727 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1101, allocations: 0 / 364.4 MB, free: 5.727 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009603/0.111, allocations: 492.2 kB / 364.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.1111, allocations: 8 kB / 364.8 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1111, allocations: 0 / 364.8 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.1111, allocations: 4 kB / 364.9 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005739/0.1117, allocations: 124 kB / 365 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/0.1117, allocations: 7.984 kB / 365 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003775/0.1121, allocations: 27.98 kB / 365 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.654e-05/0.1121, allocations: 23.97 kB / 365 MB, free: 5.047 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.0001463/0.1123, allocations: 149.7 kB / 365.2 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.101e-05/0.1124, allocations: 27.72 kB / 365.2 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001701/0.1141, allocations: 0.6602 MB / 365.9 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.1141, allocations: 7.984 kB / 365.9 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.1141, allocations: 4 kB / 365.9 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.1141, allocations: 7.922 kB / 365.9 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00285/0.117, allocations: 1.275 MB / 367.2 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.117, allocations: 0 / 367.2 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004126/0.1174, allocations: 91.89 kB / 367.2 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001448/0.1189, allocations: 276.5 kB / 367.5 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.649e-05/0.1189, allocations: 15.94 kB / 367.5 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.159/0.2779, allocations: 2.428 MB / 370 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.2779, allocations: 2.172 kB / 370 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002266/0.2802, allocations: 1.004 MB / 371 MB, free: 24.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001551/0.2804, allocations: 149.4 kB / 371.1 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.845e-05/0.2804, allocations: 11.42 kB / 371.1 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004299/0.2809, allocations: 27.27 kB / 371.2 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.281, allocations: 39.12 kB / 371.2 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-05/0.281, allocations: 14.83 kB / 371.2 MB, free: 24.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002124/0.2813, allocations: 216.1 kB / 371.4 MB, free: 24.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2813, allocations: 1 kB / 371.4 MB, free: 24.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005194/0.2818, allocations: 112.3 kB / 371.5 MB, free: 24.59 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.002366/0.2842, allocations: 1.596 MB / 373.1 MB, free: 23.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001015/0.2852, allocations: 446 kB / 373.6 MB, free: 23.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.2852, allocations: 0 / 373.6 MB, free: 23.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006001/0.2858, allocations: 386.4 kB / 373.9 MB, free: 23.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004927/0.2863, allocations: 40.84 kB / 374 MB, free: 23.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005051/0.2914, allocations: 3.849 MB / 377.8 MB, free: 21.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002223/0.2916, allocations: 0.7913 MB / 378.6 MB, free: 20.42 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002108/0.2918, allocations: 44.64 kB / 378.7 MB, free: 20.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001865/0.292, allocations: 119.7 kB / 378.8 MB, free: 20.33 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.292, allocations: 0 / 378.8 MB, free: 20.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.064/1.356, allocations: 9.537 MB / 388.3 MB, free: 17.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.23/15.58, allocations: 11.28 kB / 388.3 MB, free: 17.39 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