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.001644/0.001644, allocations: 111.1 kB / 17.06 MB, free: 5.996 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.001778/0.001778, allocations: 193.4 kB / 18 MB, free: 5.074 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.452/1.452, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 47.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3024, allocations: 49.44 MB / 400.2 MB, free: 8.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.005442/0.3079, allocations: 2.816 MB / 403.1 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002483/0.3104, allocations: 1.23 MB / 404.3 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002662/0.3107, allocations: 8 kB / 404.3 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003213/0.3111, allocations: 67.38 kB / 404.4 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006515/0.3118, allocations: 226.7 kB / 404.6 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003098/0.3121, allocations: 123.7 kB / 404.7 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005344/0.3127, allocations: 459 kB / 405.2 MB, free: 3.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.3129, allocations: 88.69 kB / 405.2 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000275/0.3131, allocations: 179.4 kB / 405.4 MB, free: 3.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003285/0.3135, allocations: 227.1 kB / 405.6 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.147e-05/0.3136, allocations: 40 kB / 405.7 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003379/0.3139, allocations: 167.9 kB / 405.8 MB, free: 3.301 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.681e-05/0.314, allocations: 87.72 kB / 405.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001992/0.3142, allocations: 187.1 kB / 406.1 MB, free: 3.031 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007171/0.3149, allocations: 0.5088 MB / 406.6 MB, free: 2.523 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.315, allocations: 0 / 406.6 MB, free: 2.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.108e-06/0.315, allocations: 0 / 406.6 MB, free: 2.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.343e-06/0.315, allocations: 3.938 kB / 406.6 MB, free: 2.52 MB / 318.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.001703/0.3167, allocations: 0.7129 MB / 407.3 MB, free: 1.758 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.3167, allocations: 8.031 kB / 407.3 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.954e-05/0.3168, allocations: 62.72 kB / 407.4 MB, free: 1.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.956e-05/0.3169, allocations: 40.7 kB / 407.4 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005191/0.3175, allocations: 329.5 kB / 407.8 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.19e-05/0.3176, allocations: 50.83 kB / 407.8 MB, free: 1.219 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.3177, allocations: 36.3 kB / 407.8 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006402/0.3184, allocations: 324.4 kB / 408.2 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.3184, allocations: 0 / 408.2 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.417e-05/0.3184, allocations: 12 kB / 408.2 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.126e-06/0.3185, allocations: 8 kB / 408.2 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007064/0.3192, allocations: 298 kB / 408.5 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001932/0.3211, allocations: 1.16 MB / 409.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006548/0.3218, allocations: 296.4 kB / 409.9 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003465/0.3221, allocations: 165.6 kB / 410.1 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.147e-05/0.3222, allocations: 11.92 kB / 410.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.3222, allocations: 38.56 kB / 410.1 MB, free: 14.78 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.523e-06/0.3222, allocations: 0 / 410.1 MB, free: 14.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.009553/0.3318, allocations: 2.427 MB / 412.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.728e-05/0.3319, allocations: 85.11 kB / 412.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003979/0.3323, allocations: 285 kB / 412.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.777e-05/0.3324, allocations: 33.7 kB / 413 MB, free: 11.85 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.3325, allocations: 168.7 kB / 413.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.3327, allocations: 154.6 kB / 413.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001643/0.3329, allocations: 78.11 kB / 413.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002028/0.3331, allocations: 346.7 kB / 413.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004102/0.3335, allocations: 164.8 kB / 413.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004647/0.334, allocations: 226.6 kB / 414.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008942/0.3349, allocations: 403.6 kB / 414.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3349, allocations: 4 kB / 414.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001142/0.336, allocations: 492.4 kB / 414.9 MB, free: 9.789 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.3361, allocations: 12.19 kB / 415 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.3361, allocations: 0 / 415 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.347e-05/0.3361, allocations: 4 kB / 415 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006073/0.3367, allocations: 115.8 kB / 415.1 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.3367, allocations: 4 kB / 415.1 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003851/0.3371, allocations: 31.98 kB / 415.1 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.163e-05/0.3372, allocations: 19.98 kB / 415.1 MB, free: 9.605 MB / 334.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.0001983/0.3374, allocations: 157.6 kB / 415.3 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.3375, allocations: 31.81 kB / 415.3 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00193/0.3394, allocations: 0.6564 MB / 416 MB, free: 8.742 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.408e-05/0.3395, allocations: 8 kB / 416 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.3395, allocations: 0 / 416 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.3395, allocations: 3.984 kB / 416 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003288/0.3428, allocations: 1.276 MB / 417.3 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.3428, allocations: 0 / 417.3 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004538/0.3433, allocations: 95.88 kB / 417.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001579/0.3449, allocations: 276.5 kB / 417.6 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.499e-05/0.3449, allocations: 12 kB / 417.6 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004923/0.3498, allocations: 2.443 MB / 420.1 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.3499, allocations: 0 / 420.1 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002504/0.3524, allocations: 1.011 MB / 421.1 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002184/0.3526, allocations: 148.9 kB / 421.2 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.666e-05/0.3527, allocations: 12 kB / 421.2 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004189/0.3531, allocations: 23.98 kB / 421.3 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/0.3533, allocations: 36.38 kB / 421.3 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.904e-05/0.3534, allocations: 16 kB / 421.3 MB, free: 3.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002751/0.3537, allocations: 212.5 kB / 421.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.004e-06/0.3537, allocations: 0 / 421.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005849/0.3543, allocations: 119.9 kB / 421.6 MB, free: 2.824 MB / 334.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.003029/0.3573, allocations: 1.602 MB / 423.2 MB, free: 1.191 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.3585, allocations: 426.3 kB / 423.7 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3585, allocations: 4.062 kB / 423.7 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007595/0.3592, allocations: 384.9 kB / 424 MB, free: 396 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004936/0.3597, allocations: 33.94 kB / 424.1 MB, free: 364 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006117/0.3659, allocations: 3.862 MB / 427.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000459/0.3664, allocations: 0.7891 MB / 428.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002281/0.3666, allocations: 42.95 kB / 428.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002334/0.3668, allocations: 119.4 kB / 428.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3669, allocations: 0 / 428.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04042/0.4073, allocations: 9.668 MB / 438.6 MB, free: 1.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.76, allocations: 7.219 kB / 438.6 MB, free: 1.914 MB / 350.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.Hstat),der(core.MagRel),der(core.Phi),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