Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001561/0.001561, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 214.9 kB / 24.52 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.392/1.392, allocations: 230.6 MB / 258.3 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 47.92 kB / 378.5 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2459, allocations: 53.38 MB / 431.9 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004989/0.2509, allocations: 2.681 MB / 434.5 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002455/0.2533, allocations: 1.191 MB / 435.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000378/0.2537, allocations: 4 kB / 435.7 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004187/0.2541, allocations: 63.44 kB / 435.8 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001036/0.2551, allocations: 230.7 kB / 436 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004525/0.2556, allocations: 135.8 kB / 436.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007679/0.2564, allocations: 463.1 kB / 436.6 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.2566, allocations: 64.83 kB / 436.7 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004632/0.257, allocations: 199.3 kB / 436.9 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003209/0.2573, allocations: 223.2 kB / 437.1 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.772e-05/0.2574, allocations: 40 kB / 437.1 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003366/0.2578, allocations: 163.9 kB / 437.3 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.2579, allocations: 95.72 kB / 437.4 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.258, allocations: 163.3 kB / 437.5 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006494/0.2587, allocations: 0.5098 MB / 438.1 MB, free: 440 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.2587, allocations: 4 kB / 438.1 MB, free: 436 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2587, allocations: 0 / 438.1 MB, free: 436 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.2587, allocations: 0 / 438.1 MB, free: 436 kB / 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.001701/0.2604, allocations: 0.6414 MB / 438.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.2604, allocations: 8.031 kB / 438.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.385e-05/0.2605, allocations: 12.62 kB / 438.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.598e-05/0.2605, allocations: 62.72 kB / 438.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.2608, allocations: 44.73 kB / 438.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005391/0.2613, allocations: 279.3 kB / 439.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.2614, allocations: 106.3 kB / 439.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001614/0.2616, allocations: 44.05 kB / 439.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006466/0.2622, allocations: 355.2 kB / 439.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.2622, allocations: 0 / 439.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.404e-05/0.2623, allocations: 8 kB / 439.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.2623, allocations: 15.94 kB / 439.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00067/0.263, allocations: 297.7 kB / 439.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.2647, allocations: 1.038 MB / 440.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006051/0.2653, allocations: 275.6 kB / 441.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003391/0.2657, allocations: 161.6 kB / 441.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.2657, allocations: 3.938 kB / 441.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.2657, allocations: 42.5 kB / 441.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.543e-06/0.2657, allocations: 0 / 441.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.009229/0.2749, allocations: 2.273 MB / 443.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.207e-05/0.275, allocations: 93.05 kB / 443.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000365/0.2754, allocations: 289 kB / 444.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.523e-05/0.2754, allocations: 33.7 kB / 444.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.2755, allocations: 168.7 kB / 444.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.2757, allocations: 154.6 kB / 444.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.2758, allocations: 78.11 kB / 444.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.276, allocations: 346.7 kB / 444.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004101/0.2764, allocations: 168.8 kB / 445 MB, free: 9.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004406/0.2768, allocations: 226.7 kB / 445.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008367/0.2777, allocations: 399.8 kB / 445.6 MB, free: 8.547 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.2777, allocations: 7.938 kB / 445.6 MB, free: 8.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001038/0.2787, allocations: 484.8 kB / 446.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.2787, allocations: 8 kB / 446.1 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.2787, allocations: 0 / 446.1 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.2788, allocations: 4 kB / 446.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006066/0.2794, allocations: 115.8 kB / 446.2 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.825e-05/0.2794, allocations: 7.984 kB / 446.2 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003786/0.2798, allocations: 36.08 kB / 446.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.415e-05/0.2798, allocations: 19.98 kB / 446.3 MB, free: 7.871 MB / 350.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.0001789/0.28, allocations: 149.7 kB / 446.4 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.92e-05/0.2801, allocations: 31.81 kB / 446.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001885/0.282, allocations: 0.6525 MB / 447.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.282, allocations: 4 kB / 447.1 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.282, allocations: 0 / 447.1 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/0.282, allocations: 11.98 kB / 447.1 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003175/0.2852, allocations: 1.162 MB / 448.3 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/0.2852, allocations: 4 kB / 448.3 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004581/0.2856, allocations: 91.88 kB / 448.4 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001593/0.2872, allocations: 272.5 kB / 448.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.352e-05/0.2873, allocations: 8 kB / 448.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004375/0.2917, allocations: 2.309 MB / 451 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2917, allocations: 0 / 451 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/0.294, allocations: 1.011 MB / 452 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001971/0.2942, allocations: 79.72 kB / 452 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.833e-05/0.2943, allocations: 12 kB / 452.1 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004533/0.2947, allocations: 23.98 kB / 452.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.2949, allocations: 40.36 kB / 452.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-05/0.2949, allocations: 12 kB / 452.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002666/0.2952, allocations: 212.5 kB / 452.3 MB, free: 1.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2952, allocations: 4 kB / 452.3 MB, free: 1.586 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006138/0.2958, allocations: 123.9 kB / 452.5 MB, free: 1.465 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.002973/0.2988, allocations: 1.585 MB / 454 MB, free: 15.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.2998, allocations: 410 kB / 454.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2998, allocations: 4 kB / 454.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007739/0.3006, allocations: 360.9 kB / 454.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005225/0.3011, allocations: 48.86 kB / 454.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006308/0.3074, allocations: 3.879 MB / 458.7 MB, free: 11.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002009/0.3076, allocations: 183.1 kB / 458.9 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002042/0.3078, allocations: 42.95 kB / 459 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002438/0.3081, allocations: 123.4 kB / 459.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3081, allocations: 0 / 459.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.038/0.3461, allocations: 9.787 MB / 468.9 MB, free: 1.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/12.94, allocations: 17.59 kB / 468.9 MB, free: 1.059 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --stepSize=4e-06 --timeout=50 --tolerance=0.0001 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.528003128012642]