Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0008773/0.0008772, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.215/1.215, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000682/0.000682, allocations: 93.02 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002733/0.0002733, allocations: 8 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2125/0.2128, allocations: 47.57 MB / 375.2 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.002126/0.215, allocations: 2.353 MB / 377.5 MB, free: 43.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.2163, allocations: 1.196 MB / 378.7 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.2164, allocations: 3.719 kB / 378.7 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000172/0.2166, allocations: 46.81 kB / 378.8 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003557/0.2169, allocations: 183.8 kB / 379 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001611/0.2171, allocations: 101 kB / 379.1 MB, free: 42.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000291/0.2174, allocations: 404.2 kB / 379.5 MB, free: 42.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.2176, allocations: 72.48 kB / 379.5 MB, free: 42.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001738/0.2177, allocations: 157.4 kB / 379.7 MB, free: 42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002016/0.2179, allocations: 193.8 kB / 379.9 MB, free: 41.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.88e-05/0.218, allocations: 22.75 kB / 379.9 MB, free: 41.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002246/0.2182, allocations: 137.9 kB / 380 MB, free: 41.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.47e-05/0.2183, allocations: 82.83 kB / 380.1 MB, free: 41.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.2184, allocations: 179.2 kB / 380.3 MB, free: 41.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002769/0.2187, allocations: 374.8 kB / 380.7 MB, free: 41.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2187, allocations: 3.938 kB / 380.7 MB, free: 41.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2187, allocations: 5.016 kB / 380.7 MB, free: 41.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.2187, allocations: 0 / 380.7 MB, free: 41.33 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.001273/0.22, allocations: 0.648 MB / 381.3 MB, free: 40.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.2201, allocations: 9.344 kB / 381.3 MB, free: 40.79 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.729e-05/0.2201, allocations: 66.34 kB / 381.4 MB, free: 40.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.564e-05/0.2202, allocations: 34.97 kB / 381.4 MB, free: 40.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000304/0.2205, allocations: 327.1 kB / 381.7 MB, free: 40.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.715e-05/0.2206, allocations: 49.33 kB / 381.8 MB, free: 40.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/0.2207, allocations: 43.7 kB / 381.8 MB, free: 40.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000533/0.2213, allocations: 324.7 kB / 382.2 MB, free: 40.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.2213, allocations: 5.188 kB / 382.2 MB, free: 40.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.897e-05/0.2213, allocations: 10.56 kB / 382.2 MB, free: 40.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.2213, allocations: 9.844 kB / 382.2 MB, free: 40.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006137/0.222, allocations: 310.8 kB / 382.5 MB, free: 39.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001394/0.2234, allocations: 1.171 MB / 383.6 MB, free: 38.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005423/0.2239, allocations: 303.8 kB / 383.9 MB, free: 38.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003042/0.2242, allocations: 174.3 kB / 384.1 MB, free: 38.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.2243, allocations: 7.516 kB / 384.1 MB, free: 38.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.806e-05/0.2243, allocations: 36.84 kB / 384.2 MB, free: 38.65 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.644e-06/0.2243, allocations: 0 / 384.2 MB, free: 38.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.00859/0.2329, allocations: 2.54 MB / 386.7 MB, free: 36.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.616e-05/0.2329, allocations: 85.05 kB / 386.8 MB, free: 36.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002439/0.2332, allocations: 284.9 kB / 387.1 MB, free: 36.49 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.853e-05/0.2332, allocations: 37.7 kB / 387.1 MB, free: 36.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.059e-05/0.2333, allocations: 160.5 kB / 387.3 MB, free: 36.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.877e-05/0.2334, allocations: 145.8 kB / 387.4 MB, free: 36.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.54e-05/0.2334, allocations: 12 kB / 387.4 MB, free: 36.13 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.289e-05/0.2335, allocations: 342.8 kB / 387.7 MB, free: 35.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003415/0.2338, allocations: 172.8 kB / 387.9 MB, free: 35.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003525/0.2342, allocations: 238.7 kB / 388.1 MB, free: 35.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006979/0.2349, allocations: 427.5 kB / 388.6 MB, free: 34.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.2349, allocations: 0 / 388.6 MB, free: 34.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008421/0.2357, allocations: 0.4888 MB / 389.1 MB, free: 34.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.2358, allocations: 8 kB / 389.1 MB, free: 34.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2358, allocations: 192 / 389.1 MB, free: 34.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.2358, allocations: 8 kB / 389.1 MB, free: 34.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005615/0.2364, allocations: 119.9 kB / 389.2 MB, free: 34.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.2364, allocations: 11.92 kB / 389.2 MB, free: 34.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003593/0.2367, allocations: 43.97 kB / 389.2 MB, free: 34.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.158e-05/0.2368, allocations: 19.94 kB / 389.3 MB, free: 34.23 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.0001248/0.2369, allocations: 157.7 kB / 389.4 MB, free: 34.06 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.369e-05/0.237, allocations: 31.62 kB / 389.4 MB, free: 34.03 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001604/0.2386, allocations: 0.6798 MB / 390.1 MB, free: 33.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.2386, allocations: 8 kB / 390.1 MB, free: 33.33 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.2386, allocations: 4 kB / 390.1 MB, free: 33.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2386, allocations: 0 / 390.1 MB, free: 33.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002673/0.2413, allocations: 1.326 MB / 391.5 MB, free: 31.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.2413, allocations: 0 / 391.5 MB, free: 31.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003962/0.2417, allocations: 91.88 kB / 391.6 MB, free: 31.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001534/0.2433, allocations: 292.5 kB / 391.8 MB, free: 31.56 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.37e-05/0.2433, allocations: 8 kB / 391.8 MB, free: 31.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003094/0.2464, allocations: 2.276 MB / 394.1 MB, free: 29.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2464, allocations: 0 / 394.1 MB, free: 29.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.2484, allocations: 1.049 MB / 395.2 MB, free: 28.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001332/0.2485, allocations: 144.7 kB / 395.3 MB, free: 27.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.999e-05/0.2486, allocations: 12 kB / 395.3 MB, free: 27.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004115/0.249, allocations: 35.98 kB / 395.4 MB, free: 27.87 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.2491, allocations: 40.36 kB / 395.4 MB, free: 27.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.832e-05/0.2492, allocations: 12 kB / 395.4 MB, free: 27.82 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001542/0.2493, allocations: 208.6 kB / 395.6 MB, free: 27.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2493, allocations: 0 / 395.6 MB, free: 27.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004653/0.2498, allocations: 127.9 kB / 395.7 MB, free: 27.49 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.002172/0.252, allocations: 1.629 MB / 397.4 MB, free: 25.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007633/0.2528, allocations: 446.1 kB / 397.8 MB, free: 25.39 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2528, allocations: 384 / 397.8 MB, free: 25.39 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005479/0.2533, allocations: 400.8 kB / 398.2 MB, free: 24.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000463/0.2538, allocations: 39.06 kB / 398.2 MB, free: 24.95 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003165/0.257, allocations: 2.644 MB / 400.9 MB, free: 22.23 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001555/0.2571, allocations: 0.7933 MB / 401.7 MB, free: 21.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000199/0.2573, allocations: 115.4 kB / 401.8 MB, free: 21.3 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2574, allocations: 0 / 401.8 MB, free: 21.3 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.885/3.143, allocations: 6.174 MB / 408 MB, free: 15.12 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","../files/Modelica_3.2.3_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.freqHz,vSource.i,vSource.n.i,vSource.n.v,vSource.offset,vSource.p.i,vSource.p.v,vSource.phase,vSource.signalSource.amplitude,vSource.signalSource.freqHz,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