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.001519/0.001519, allocations: 99.09 kB / 16.5 MB, free: 6.648 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.00179/0.00179, allocations: 193.9 kB / 17.42 MB, free: 6.066 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.315/1.315, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 54.86 kB / 300.1 MB, free: 6.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1066, allocations: 49.45 MB / 349.5 MB, free: 4.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.003522/0.1102, allocations: 2.85 MB / 352.4 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.1119, allocations: 1.246 MB / 353.6 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001647/0.1121, allocations: 4 kB / 353.6 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002461/0.1123, allocations: 59.61 kB / 353.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004575/0.1128, allocations: 195.2 kB / 353.9 MB, free: 356 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000222/0.113, allocations: 99.83 kB / 354 MB, free: 256 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003701/0.1134, allocations: 446.8 kB / 354.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.1136, allocations: 73.08 kB / 354.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000243/0.1138, allocations: 167.4 kB / 354.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000227/0.1141, allocations: 215.1 kB / 354.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.096e-05/0.1141, allocations: 24 kB / 354.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002394/0.1144, allocations: 143.9 kB / 355 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.665e-05/0.1145, allocations: 75.72 kB / 355.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.1146, allocations: 175.1 kB / 355.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004193/0.115, allocations: 486.4 kB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.115, allocations: 4 kB / 355.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1151, allocations: 0 / 355.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.1151, allocations: 0 / 355.7 MB, free: 14.47 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.001446/0.1165, allocations: 0.7016 MB / 356.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.1166, allocations: 8.031 kB / 356.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.421e-05/0.1166, allocations: 66.72 kB / 356.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.352e-05/0.1167, allocations: 36.56 kB / 356.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003414/0.117, allocations: 329.2 kB / 356.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.746e-05/0.1171, allocations: 46.83 kB / 356.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000137/0.1173, allocations: 44.28 kB / 357 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005517/0.1178, allocations: 328.4 kB / 357.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.1178, allocations: 0 / 357.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/0.1179, allocations: 11.94 kB / 357.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.974e-06/0.1179, allocations: 11.98 kB / 357.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006007/0.1185, allocations: 298 kB / 357.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001521/0.12, allocations: 1.163 MB / 358.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005454/0.1206, allocations: 297 kB / 359 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002946/0.1209, allocations: 165.6 kB / 359.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.353e-05/0.1209, allocations: 3.938 kB / 359.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/0.121, allocations: 38.56 kB / 359.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 2.755e-06/0.121, allocations: 4 kB / 359.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.008499/0.1295, allocations: 2.405 MB / 361.7 MB, free: 8.246 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.1295, allocations: 81.11 kB / 361.7 MB, free: 8.148 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002886/0.1298, allocations: 289 kB / 362 MB, free: 7.855 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/0.1299, allocations: 33.7 kB / 362.1 MB, free: 7.816 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.344e-05/0.13, allocations: 176.3 kB / 362.2 MB, free: 7.641 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.837e-05/0.1301, allocations: 138 kB / 362.4 MB, free: 7.504 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.1302, allocations: 82.02 kB / 362.4 MB, free: 7.418 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.1303, allocations: 350.7 kB / 362.8 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003674/0.1307, allocations: 156.8 kB / 362.9 MB, free: 6.914 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003917/0.1311, allocations: 234.6 kB / 363.2 MB, free: 6.664 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007443/0.1319, allocations: 407.6 kB / 363.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1319, allocations: 0 / 363.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009176/0.1328, allocations: 492.3 kB / 364 MB, free: 5.758 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.1328, allocations: 11.94 kB / 364.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1328, allocations: 0 / 364.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.1328, allocations: 4 kB / 364.1 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005644/0.1334, allocations: 111.9 kB / 364.2 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.1334, allocations: 7.984 kB / 364.2 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003642/0.1338, allocations: 40.02 kB / 364.2 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.583e-05/0.1338, allocations: 19.98 kB / 364.2 MB, free: 5.566 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.0001521/0.134, allocations: 153.7 kB / 364.4 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.531e-05/0.1341, allocations: 27.72 kB / 364.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001697/0.1358, allocations: 0.6525 MB / 365.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.1358, allocations: 8 kB / 365.1 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1358, allocations: 4 kB / 365.1 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.1358, allocations: 3.984 kB / 365.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002946/0.1388, allocations: 1.279 MB / 366.4 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.1388, allocations: 0 / 366.4 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004087/0.1392, allocations: 87.89 kB / 366.4 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001503/0.1407, allocations: 276.5 kB / 366.7 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.858e-05/0.1408, allocations: 8 kB / 366.7 MB, free: 3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003495/0.1443, allocations: 2.213 MB / 368.9 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1443, allocations: 0 / 368.9 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1362/0.2805, allocations: 1.005 MB / 369.9 MB, free: 25.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.2807, allocations: 153.5 kB / 370.1 MB, free: 25.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.828e-05/0.2808, allocations: 10.03 kB / 370.1 MB, free: 25.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004581/0.2812, allocations: 28.84 kB / 370.1 MB, free: 25.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.2814, allocations: 37.78 kB / 370.2 MB, free: 25.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-05/0.2814, allocations: 14.89 kB / 370.2 MB, free: 25.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000196/0.2816, allocations: 212.4 kB / 370.4 MB, free: 25.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2816, allocations: 0 / 370.4 MB, free: 25.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005213/0.2822, allocations: 115 kB / 370.5 MB, free: 25.43 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.002448/0.2846, allocations: 1.587 MB / 372.1 MB, free: 24.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000861/0.2855, allocations: 431.9 kB / 372.5 MB, free: 24.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2855, allocations: 1.312 kB / 372.5 MB, free: 24.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006401/0.2861, allocations: 378.2 kB / 372.9 MB, free: 24.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004962/0.2867, allocations: 48.97 kB / 372.9 MB, free: 24.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004771/0.2914, allocations: 3.975 MB / 376.9 MB, free: 21.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.2917, allocations: 0.7861 MB / 377.7 MB, free: 21.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002191/0.2919, allocations: 41.09 kB / 377.7 MB, free: 21.28 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000199/0.2921, allocations: 123 kB / 377.8 MB, free: 21.2 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2921, allocations: 4 kB / 377.9 MB, free: 21.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.095/1.387, allocations: 9.025 MB / 386.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001708/1.388, allocations: 256.7 kB / 387.1 MB, free: 18.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.57/3.958, allocations: 5.125 kB / 387.1 MB, free: 18.41 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