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.0008854/0.0008858, allocations: 92.3 kB / 16.65 MB, free: 6.535 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.001056/0.001056, allocations: 176.3 kB / 17.56 MB, free: 6.18 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.43/1.43, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003204/0.0003205, allocations: 8.844 kB / 301.5 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1178, allocations: 50.41 MB / 351.9 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.00349/0.1214, allocations: 2.495 MB / 354.4 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002413/0.1238, allocations: 1.223 MB / 355.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003284/0.1242, allocations: 4 kB / 355.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003722/0.1245, allocations: 63.59 kB / 355.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008156/0.1254, allocations: 195.2 kB / 355.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003229/0.1257, allocations: 103.8 kB / 356 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000607/0.1263, allocations: 446.8 kB / 356.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001849/0.1265, allocations: 65.09 kB / 356.5 MB, free: 15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003638/0.1269, allocations: 167.4 kB / 356.7 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003503/0.1273, allocations: 199.2 kB / 356.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.369e-05/0.1273, allocations: 20 kB / 356.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003472/0.1277, allocations: 151.9 kB / 357.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.813e-05/0.1278, allocations: 67.72 kB / 357.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002272/0.128, allocations: 196.8 kB / 357.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000633/0.1287, allocations: 482.3 kB / 357.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1287, allocations: 0 / 357.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1287, allocations: 0 / 357.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.1287, allocations: 0 / 357.8 MB, free: 13.73 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.001688/0.1304, allocations: 0.6471 MB / 358.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.827e-05/0.1305, allocations: 12.03 kB / 358.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001219/0.1306, allocations: 58.73 kB / 358.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.1307, allocations: 36.47 kB / 358.5 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005513/0.1313, allocations: 333.3 kB / 358.9 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.278e-05/0.1314, allocations: 50.83 kB / 358.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001681/0.1315, allocations: 48.2 kB / 359 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007042/0.1323, allocations: 324.4 kB / 359.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.1323, allocations: 0 / 359.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.606e-05/0.1323, allocations: 16 kB / 359.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.1323, allocations: 7.938 kB / 359.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007127/0.1331, allocations: 318 kB / 359.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001808/0.1349, allocations: 1.167 MB / 360.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006168/0.1355, allocations: 307.7 kB / 361.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003357/0.1359, allocations: 165.7 kB / 361.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/0.1359, allocations: 7.984 kB / 361.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/0.1359, allocations: 46.55 kB / 361.3 MB, free: 9.996 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.553e-06/0.1359, allocations: 0 / 361.3 MB, free: 9.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.00933/0.1453, allocations: 2.526 MB / 363.8 MB, free: 7.395 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/0.1454, allocations: 81.11 kB / 363.9 MB, free: 7.297 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003734/0.1457, allocations: 285 kB / 364.2 MB, free: 7.008 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.339e-05/0.1458, allocations: 33.7 kB / 364.2 MB, free: 6.969 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.1459, allocations: 176.3 kB / 364.4 MB, free: 6.793 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.1461, allocations: 145.8 kB / 364.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.664e-05/0.1461, allocations: 45.69 kB / 364.6 MB, free: 6.598 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.1463, allocations: 346.8 kB / 364.9 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004022/0.1467, allocations: 172.7 kB / 365.1 MB, free: 6.082 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000436/0.1471, allocations: 234.7 kB / 365.3 MB, free: 5.832 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008665/0.148, allocations: 427.6 kB / 365.7 MB, free: 5.395 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.148, allocations: 4 kB / 365.7 MB, free: 5.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001113/0.1491, allocations: 0.4925 MB / 366.2 MB, free: 4.891 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.1492, allocations: 4.188 kB / 366.2 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.1492, allocations: 8 kB / 366.2 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.1492, allocations: 7.984 kB / 366.2 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005855/0.1498, allocations: 115.9 kB / 366.3 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.657e-05/0.1498, allocations: 7.938 kB / 366.4 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004163/0.1502, allocations: 43.89 kB / 366.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.575e-05/0.1503, allocations: 19.98 kB / 366.4 MB, free: 4.688 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.0002188/0.1505, allocations: 149.7 kB / 366.6 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/0.1506, allocations: 31.7 kB / 366.6 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002007/0.1527, allocations: 0.6915 MB / 367.3 MB, free: 3.801 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.1527, allocations: 4 kB / 367.3 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/0.1527, allocations: 4 kB / 367.3 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1527, allocations: 0 / 367.3 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003482/0.1562, allocations: 1.318 MB / 368.6 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1562, allocations: 0 / 368.6 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004473/0.1567, allocations: 95.88 kB / 368.7 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001734/0.1584, allocations: 296.4 kB / 369 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.337e-05/0.1585, allocations: 12 kB / 369 MB, free: 2.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1986/0.357, allocations: 2.266 MB / 371.3 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.3571, allocations: 1.953 kB / 371.3 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002694/0.3598, allocations: 1.055 MB / 372.3 MB, free: 23.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001901/0.36, allocations: 150.5 kB / 372.5 MB, free: 23.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.495e-05/0.3601, allocations: 10.09 kB / 372.5 MB, free: 23.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004685/0.3605, allocations: 37.73 kB / 372.5 MB, free: 23.67 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.3607, allocations: 38.25 kB / 372.6 MB, free: 23.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.82e-05/0.3607, allocations: 14.62 kB / 372.6 MB, free: 23.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002605/0.361, allocations: 215.8 kB / 372.8 MB, free: 23.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.361, allocations: 0 / 372.8 MB, free: 23.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006129/0.3616, allocations: 115 kB / 372.9 MB, free: 23.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.003025/0.3647, allocations: 1.641 MB / 374.5 MB, free: 22.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009824/0.3657, allocations: 445.1 kB / 375 MB, free: 22.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3657, allocations: 0 / 375 MB, free: 22.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007164/0.3664, allocations: 396.4 kB / 375.4 MB, free: 22.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005273/0.3669, allocations: 39.53 kB / 375.4 MB, free: 22.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005949/0.3729, allocations: 4.146 MB / 379.5 MB, free: 20.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/0.3732, allocations: 0.7901 MB / 380.3 MB, free: 19.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002255/0.3734, allocations: 39.97 kB / 380.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002123/0.3736, allocations: 120.6 kB / 380.5 MB, free: 19.44 MB / 302.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3736, allocations: 0 / 380.5 MB, free: 19.44 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02319/0.3968, allocations: 8.94 MB / 389.4 MB, free: 16.76 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001465/0.397, allocations: 252.2 kB / 389.7 MB, free: 16.51 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.119/2.516, allocations: 2.344 kB / 389.7 MB, free: 16.51 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