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.001374/0.001374, allocations: 122.2 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0014/0.0014, allocations: 197.2 kB / 18.74 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002455/0.002455, allocations: 63.89 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2627, allocations: 50.55 MB / 408.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004315/0.267, allocations: 2.846 MB / 411.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002237/0.2693, allocations: 1.289 MB / 413 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001776/0.2695, allocations: 4 kB / 413 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002769/0.2698, allocations: 71.34 kB / 413 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005511/0.2704, allocations: 226.7 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002921/0.2707, allocations: 131.8 kB / 413.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004973/0.2712, allocations: 459 kB / 413.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001702/0.2713, allocations: 80.7 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002967/0.2717, allocations: 187.4 kB / 414.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003407/0.272, allocations: 227.2 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.303e-05/0.2721, allocations: 44 kB / 414.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003118/0.2724, allocations: 163.9 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001012/0.2725, allocations: 99.66 kB / 414.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000251/0.2728, allocations: 187.1 kB / 414.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006386/0.2734, allocations: 0.5049 MB / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2734, allocations: 0 / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.607e-06/0.2734, allocations: 0 / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.2735, allocations: 3.938 kB / 415.3 MB, free: 10.96 MB / 334.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.001682/0.2751, allocations: 0.7207 MB / 416 MB, free: 10.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.2752, allocations: 15.97 kB / 416 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.052e-05/0.2753, allocations: 58.73 kB / 416.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001907/0.2755, allocations: 44.73 kB / 416.1 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005105/0.276, allocations: 337.4 kB / 416.5 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.714e-05/0.2761, allocations: 50.81 kB / 416.5 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.2763, allocations: 48.23 kB / 416.6 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006722/0.2769, allocations: 316.5 kB / 416.9 MB, free: 9.262 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.277, allocations: 7.938 kB / 416.9 MB, free: 9.254 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.113e-05/0.277, allocations: 8 kB / 416.9 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.277, allocations: 8 kB / 416.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000704/0.2777, allocations: 302 kB / 417.2 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.2796, allocations: 1.156 MB / 418.3 MB, free: 7.711 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006771/0.2803, allocations: 293 kB / 418.6 MB, free: 7.406 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003475/0.2806, allocations: 161.6 kB / 418.8 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.2806, allocations: 4 kB / 418.8 MB, free: 7.238 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.2807, allocations: 34.56 kB / 418.8 MB, free: 7.195 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.713e-06/0.2807, allocations: 4 kB / 418.8 MB, free: 7.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.009352/0.2901, allocations: 2.435 MB / 421.3 MB, free: 4.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.478e-05/0.2901, allocations: 85.09 kB / 421.4 MB, free: 4.578 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000368/0.2905, allocations: 289 kB / 421.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.889e-05/0.2906, allocations: 33.7 kB / 421.7 MB, free: 4.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.2907, allocations: 172.6 kB / 421.8 MB, free: 4.078 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.2908, allocations: 154.6 kB / 422 MB, free: 3.926 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.291, allocations: 78.11 kB / 422.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002025/0.2912, allocations: 346.8 kB / 422.4 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004372/0.2917, allocations: 160.8 kB / 422.6 MB, free: 3.336 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004758/0.2922, allocations: 230.6 kB / 422.8 MB, free: 3.094 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009055/0.2931, allocations: 399.8 kB / 423.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.2931, allocations: 4 kB / 423.2 MB, free: 2.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001099/0.2942, allocations: 488.6 kB / 423.7 MB, free: 2.195 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.2942, allocations: 8 kB / 423.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.2942, allocations: 0 / 423.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.2943, allocations: 4 kB / 423.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000604/0.2949, allocations: 119.8 kB / 423.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.707e-06/0.2949, allocations: 4 kB / 423.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003887/0.2953, allocations: 36 kB / 423.8 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.362e-05/0.2953, allocations: 19.98 kB / 423.8 MB, free: 2.008 MB / 334.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.0001952/0.2955, allocations: 149.7 kB / 424 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.37e-05/0.2956, allocations: 31.81 kB / 424 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001921/0.2976, allocations: 0.6564 MB / 424.7 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.2976, allocations: 11.94 kB / 424.7 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.2976, allocations: 4 kB / 424.7 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-06/0.2976, allocations: 3.984 kB / 424.7 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003229/0.3009, allocations: 1.279 MB / 426 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.3009, allocations: 8 kB / 426 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004447/0.3013, allocations: 83.89 kB / 426.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001581/0.3029, allocations: 272.5 kB / 426.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.183e-05/0.303, allocations: 12 kB / 426.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004189/0.3072, allocations: 2.436 MB / 428.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.3072, allocations: 3.984 kB / 428.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002853/0.3101, allocations: 1.019 MB / 429.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002952/0.3104, allocations: 144.8 kB / 429.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.126e-05/0.3105, allocations: 15.98 kB / 430 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006713/0.3112, allocations: 27.98 kB / 430 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.3113, allocations: 36.47 kB / 430 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.759e-05/0.3114, allocations: 15.98 kB / 430 MB, free: 11.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003748/0.3118, allocations: 216.5 kB / 430.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3118, allocations: 0 / 430.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009516/0.3128, allocations: 115.9 kB / 430.4 MB, free: 11.22 MB / 350.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.004273/0.3171, allocations: 1.594 MB / 432 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001551/0.3186, allocations: 430 kB / 432.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.3187, allocations: 0 / 432.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.3198, allocations: 388.8 kB / 432.8 MB, free: 8.789 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008223/0.3206, allocations: 48.27 kB / 432.8 MB, free: 8.746 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009078/0.3297, allocations: 3.861 MB / 436.7 MB, free: 4.758 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000589/0.3304, allocations: 0.7813 MB / 437.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003358/0.3307, allocations: 50.94 kB / 437.5 MB, free: 3.895 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003558/0.3311, allocations: 119.4 kB / 437.6 MB, free: 3.777 MB / 350.1 MB Notification: Performance of SimCode: time 1.143e-06/0.3311, allocations: 0 / 437.6 MB, free: 3.777 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04826/0.3794, allocations: 9.699 MB / 447.3 MB, free: 10.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/12.47, allocations: 9.047 kB / 447.3 MB, free: 10.28 MB / 366.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.1.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.Hstat),der(core.MagRel),der(core.Phi),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