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.0007174/0.0007174, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008713/0.0008714, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 227.7 MB / 246.8 MB, free: 11.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002234/0.0002236, allocations: 4 kB / 307.9 MB, free: 0.7031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08228/0.08252, allocations: 51.52 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.002911/0.08545, allocations: 2.513 MB / 361.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001989/0.08746, allocations: 1.285 MB / 363.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002287/0.08772, allocations: 4 kB / 363.2 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002591/0.08799, allocations: 51.61 kB / 363.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005698/0.08857, allocations: 195.2 kB / 363.4 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002877/0.08887, allocations: 119.8 kB / 363.5 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000454/0.08933, allocations: 439 kB / 364 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.08949, allocations: 73.08 kB / 364 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000298/0.0898, allocations: 163.4 kB / 364.2 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00029/0.0901, allocations: 199.2 kB / 364.4 MB, free: 8.141 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.261e-05/0.09017, allocations: 24 kB / 364.4 MB, free: 8.117 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000292/0.09047, allocations: 151.9 kB / 364.6 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.399e-05/0.09055, allocations: 79.59 kB / 364.6 MB, free: 7.891 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001686/0.09072, allocations: 188.9 kB / 364.8 MB, free: 7.699 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004607/0.09119, allocations: 490.3 kB / 365.3 MB, free: 7.219 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.0912, allocations: 0 / 365.3 MB, free: 7.219 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.09121, allocations: 0 / 365.3 MB, free: 7.219 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.09123, allocations: 0 / 365.3 MB, free: 7.219 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.001423/0.09265, allocations: 0.651 MB / 365.9 MB, free: 6.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.0927, allocations: 12.03 kB / 366 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.239e-05/0.09279, allocations: 66.66 kB / 366 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.09298, allocations: 44.47 kB / 366.1 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003952/0.09338, allocations: 329.3 kB / 366.4 MB, free: 6.027 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.352e-05/0.09345, allocations: 50.81 kB / 366.4 MB, free: 5.973 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.09361, allocations: 40.31 kB / 366.5 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006047/0.09423, allocations: 328.4 kB / 366.8 MB, free: 5.598 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.09425, allocations: 0 / 366.8 MB, free: 5.598 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.295e-05/0.09429, allocations: 12 kB / 366.8 MB, free: 5.586 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.0943, allocations: 12 kB / 366.8 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006552/0.09496, allocations: 310 kB / 367.1 MB, free: 5.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00167/0.09664, allocations: 1.175 MB / 368.3 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005766/0.09723, allocations: 313 kB / 368.6 MB, free: 3.691 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003197/0.09756, allocations: 177.6 kB / 368.8 MB, free: 3.512 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.09759, allocations: 7.984 kB / 368.8 MB, free: 3.504 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.466e-05/0.09762, allocations: 38.56 kB / 368.8 MB, free: 3.457 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.743e-06/0.09763, allocations: 0 / 368.8 MB, free: 3.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.00894/0.1066, allocations: 2.534 MB / 371.4 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.1066, allocations: 89.05 kB / 371.4 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003119/0.107, allocations: 296.8 kB / 371.7 MB, free: 448 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.107, allocations: 29.7 kB / 371.8 MB, free: 412 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.689e-05/0.1071, allocations: 164.5 kB / 371.9 MB, free: 244 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.1072, allocations: 153.8 kB / 372.1 MB, free: 88 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.051e-05/0.1073, allocations: 41.7 kB / 372.1 MB, free: 40 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1379/0.2452, allocations: 338 kB / 372.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005558/0.2458, allocations: 170.1 kB / 372.6 MB, free: 18.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004385/0.2462, allocations: 240.9 kB / 372.8 MB, free: 18.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000801/0.2471, allocations: 431.4 kB / 373.3 MB, free: 18.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2471, allocations: 0.8125 kB / 373.3 MB, free: 18.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001028/0.2481, allocations: 0.4947 MB / 373.8 MB, free: 18.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.2481, allocations: 5.344 kB / 373.8 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.2481, allocations: 1.406 kB / 373.8 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.2482, allocations: 4.266 kB / 373.8 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005842/0.2487, allocations: 123.3 kB / 373.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.2488, allocations: 11.66 kB / 373.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003834/0.2492, allocations: 40.86 kB / 373.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.9e-05/0.2492, allocations: 18.27 kB / 374 MB, free: 18.52 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.0001508/0.2494, allocations: 152.4 kB / 374.1 MB, free: 18.4 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.229e-05/0.2494, allocations: 30.06 kB / 374.1 MB, free: 18.4 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001798/0.2512, allocations: 0.6873 MB / 374.8 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.2513, allocations: 6.031 kB / 374.8 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2513, allocations: 0 / 374.8 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.405e-06/0.2513, allocations: 7.281 kB / 374.8 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003079/0.2544, allocations: 1.312 MB / 376.2 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.2544, allocations: 1.375 kB / 376.2 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004052/0.2548, allocations: 96.27 kB / 376.2 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001639/0.2564, allocations: 293.2 kB / 376.5 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.132e-05/0.2565, allocations: 12.78 kB / 376.5 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003362/0.2599, allocations: 2.274 MB / 378.8 MB, free: 16.4 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.2599, allocations: 5.547 kB / 378.8 MB, free: 16.4 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002131/0.262, allocations: 1.054 MB / 379.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/0.2621, allocations: 150.2 kB / 380 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.928e-05/0.2622, allocations: 11.66 kB / 380 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004087/0.2626, allocations: 33 kB / 380.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.2627, allocations: 40.66 kB / 380.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.008e-05/0.2628, allocations: 19.88 kB / 380.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001873/0.263, allocations: 212.8 kB / 380.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.263, allocations: 0 / 380.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004998/0.2635, allocations: 115 kB / 380.5 MB, free: 15.61 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.002382/0.2659, allocations: 1.636 MB / 382.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008544/0.2667, allocations: 446.4 kB / 382.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2667, allocations: 4 kB / 382.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006007/0.2673, allocations: 390.6 kB / 382.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004705/0.2678, allocations: 45.19 kB / 383 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005188/0.273, allocations: 4.165 MB / 387.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002078/0.2732, allocations: 0.7868 MB / 387.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001938/0.2734, allocations: 41.83 kB / 387.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001889/0.2736, allocations: 119.2 kB / 388.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2736, allocations: 0 / 388.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01822/0.2919, allocations: 8.951 MB / 397 MB, free: 7.395 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001927/0.2921, allocations: 264.3 kB / 397.3 MB, free: 7.129 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.863/2.155, allocations: 3.625 kB / 397.3 MB, free: 7.129 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