Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001051/0.001051, allocations: 200.4 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 226.5 MB / 244.7 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008064/0.0008065, allocations: 91.92 kB / 296.7 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002467/0.0002468, allocations: 8 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.2139, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.002196/0.2162, allocations: 2.423 MB / 410.6 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.2175, allocations: 1.167 MB / 411.7 MB, free: 24.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.2177, allocations: 6.312 kB / 411.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001908/0.2179, allocations: 55.61 kB / 411.8 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003732/0.2182, allocations: 185.7 kB / 412 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001766/0.2184, allocations: 90.86 kB / 412.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002637/0.2187, allocations: 411 kB / 412.5 MB, free: 23.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.2188, allocations: 72.36 kB / 412.5 MB, free: 23.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.219, allocations: 163.5 kB / 412.7 MB, free: 23.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002004/0.2193, allocations: 199.3 kB / 412.9 MB, free: 22.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.559e-05/0.2193, allocations: 24 kB / 412.9 MB, free: 22.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000216/0.2195, allocations: 139.9 kB / 413 MB, free: 22.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.176e-05/0.2196, allocations: 71.72 kB / 413.1 MB, free: 22.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.2197, allocations: 184.9 kB / 413.3 MB, free: 22.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.22, allocations: 380.1 kB / 413.7 MB, free: 22.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.22, allocations: 0 / 413.7 MB, free: 22.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.22, allocations: 0 / 413.7 MB, free: 22.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.22, allocations: 0 / 413.7 MB, free: 22.16 MB / 298.7 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.001243/0.2213, allocations: 0.651 MB / 414.3 MB, free: 21.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.2213, allocations: 8.031 kB / 414.3 MB, free: 21.45 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.601e-05/0.2214, allocations: 74.59 kB / 414.4 MB, free: 21.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.2215, allocations: 48.55 kB / 414.4 MB, free: 21.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002965/0.2218, allocations: 321.3 kB / 414.8 MB, free: 20.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.564e-05/0.2219, allocations: 50.81 kB / 414.8 MB, free: 20.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.222, allocations: 40.3 kB / 414.9 MB, free: 20.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005073/0.2226, allocations: 328.4 kB / 415.2 MB, free: 20.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.2226, allocations: 0 / 415.2 MB, free: 20.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.855e-05/0.2226, allocations: 12 kB / 415.2 MB, free: 20.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.2226, allocations: 4 kB / 415.2 MB, free: 20.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005904/0.2232, allocations: 321.9 kB / 415.5 MB, free: 20.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001373/0.2246, allocations: 1.164 MB / 416.7 MB, free: 18.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004972/0.2251, allocations: 303.3 kB / 417 MB, free: 18.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002695/0.2254, allocations: 165.6 kB / 417.1 MB, free: 18.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.2254, allocations: 7.984 kB / 417.1 MB, free: 18.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.2255, allocations: 38.56 kB / 417.2 MB, free: 18.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.423e-06/0.2255, allocations: 4 kB / 417.2 MB, free: 18.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.008431/0.2339, allocations: 2.535 MB / 419.7 MB, free: 15.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.234, allocations: 89.03 kB / 419.8 MB, free: 15.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002884/0.2343, allocations: 285 kB / 420.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.2343, allocations: 29.7 kB / 420.1 MB, free: 15.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.528e-05/0.2344, allocations: 164.5 kB / 420.3 MB, free: 15.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.84e-05/0.2345, allocations: 153.8 kB / 420.4 MB, free: 15.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.548e-05/0.2345, allocations: 8 kB / 420.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.166e-05/0.2346, allocations: 342.8 kB / 420.8 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003445/0.2349, allocations: 168.8 kB / 420.9 MB, free: 14.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003791/0.2353, allocations: 238.7 kB / 421.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007169/0.236, allocations: 419.8 kB / 421.6 MB, free: 13.87 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.236, allocations: 0 / 421.6 MB, free: 13.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008667/0.2369, allocations: 0.4965 MB / 422.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.2369, allocations: 4 kB / 422.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.237, allocations: 3.984 kB / 422.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.237, allocations: 4 kB / 422.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005466/0.2375, allocations: 123.9 kB / 422.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.2376, allocations: 7.938 kB / 422.2 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003703/0.2379, allocations: 35.98 kB / 422.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.274e-05/0.238, allocations: 23.97 kB / 422.3 MB, free: 13.16 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001386/0.2381, allocations: 157.7 kB / 422.4 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.385e-05/0.2382, allocations: 35.61 kB / 422.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00164/0.2398, allocations: 0.676 MB / 423.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.2399, allocations: 11.94 kB / 423.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2399, allocations: 3.938 kB / 423.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2399, allocations: 0 / 423.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002712/0.2426, allocations: 1.322 MB / 424.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.2426, allocations: 0 / 424.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004038/0.243, allocations: 95.88 kB / 424.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001565/0.2446, allocations: 288.5 kB / 424.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.243e-05/0.2447, allocations: 8 kB / 424.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003263/0.2479, allocations: 2.28 MB / 427.1 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2479, allocations: 0 / 427.1 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002009/0.25, allocations: 1.053 MB / 428.2 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/0.2501, allocations: 144.7 kB / 428.3 MB, free: 6.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.97e-05/0.2502, allocations: 12 kB / 428.3 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004156/0.2506, allocations: 31.98 kB / 428.4 MB, free: 6.797 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/0.2507, allocations: 40.38 kB / 428.4 MB, free: 6.758 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.2507, allocations: 12 kB / 428.4 MB, free: 6.746 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001644/0.2509, allocations: 208.5 kB / 428.6 MB, free: 6.543 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2509, allocations: 0 / 428.6 MB, free: 6.543 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005183/0.2514, allocations: 120 kB / 428.7 MB, free: 6.426 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.00227/0.2537, allocations: 1.641 MB / 430.4 MB, free: 4.758 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008247/0.2546, allocations: 438.1 kB / 430.8 MB, free: 4.328 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2546, allocations: 0 / 430.8 MB, free: 4.328 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005855/0.2552, allocations: 401.4 kB / 431.2 MB, free: 3.922 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004636/0.2556, allocations: 34.86 kB / 431.2 MB, free: 3.891 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003295/0.2589, allocations: 2.649 MB / 433.9 MB, free: 1.172 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001737/0.2591, allocations: 0.7933 MB / 434.7 MB, free: 356 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001986/0.2593, allocations: 115.4 kB / 434.8 MB, free: 240 kB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.2593, allocations: 0 / 434.8 MB, free: 240 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.947/3.207, allocations: 6.183 MB / 441 MB, free: 10.05 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_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.H2,core.H3,core.H_lim,core.Heddy,core.Hstat,core.Js,core.LossPower,core.LossPowerEddy,core.LossPowerStat,core.MagRel,core.P1,core.P2,core.P3,core.P4,core.Phi,core.T,core.T_heatPort,core.V,core.V_m,core.asc,core.d,core.dHyst,core.derHstat,core.diffHyst,core.eddyCurrentFactor,core.eps,core.hystF,core.hystR,core.includeEddyCurrents,core.k,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.mu0,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