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.001225/0.001225, allocations: 107.1 kB / 20.44 MB, free: 1.355 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.001373/0.001373, allocations: 212.7 kB / 23.73 MB, free: 4.531 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.381/1.381, allocations: 230.6 MB / 257.5 MB, free: 7.801 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 51.92 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2688, allocations: 53.36 MB / 431.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004169/0.273, allocations: 2.695 MB / 433.8 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002038/0.275, allocations: 1.199 MB / 435 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.2752, allocations: 4 kB / 435 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002428/0.2754, allocations: 65.12 kB / 435 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005305/0.2759, allocations: 230.7 kB / 435.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002789/0.2762, allocations: 131.8 kB / 435.4 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004859/0.2767, allocations: 459.1 kB / 435.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.2768, allocations: 72.77 kB / 435.9 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002961/0.2771, allocations: 195.4 kB / 436.1 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003227/0.2775, allocations: 219.2 kB / 436.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.155e-05/0.2775, allocations: 44 kB / 436.4 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003019/0.2778, allocations: 167.9 kB / 436.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.59e-05/0.2779, allocations: 95.7 kB / 436.6 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.2781, allocations: 159.3 kB / 436.8 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006165/0.2787, allocations: 0.5098 MB / 437.3 MB, free: 448 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2787, allocations: 0 / 437.3 MB, free: 448 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2787, allocations: 0 / 437.3 MB, free: 448 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.2787, allocations: 0 / 437.3 MB, free: 448 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.001757/0.2805, allocations: 0.6453 MB / 437.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.2805, allocations: 8.031 kB / 437.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.869e-05/0.2806, allocations: 62.67 kB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001909/0.2808, allocations: 44.73 kB / 438 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000502/0.2813, allocations: 279.2 kB / 438.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001079/0.2814, allocations: 106.3 kB / 438.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001674/0.2816, allocations: 48.28 kB / 438.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006761/0.2822, allocations: 347.2 kB / 438.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.2823, allocations: 4 kB / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.318e-05/0.2823, allocations: 8 kB / 438.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.2823, allocations: 8 kB / 438.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007117/0.283, allocations: 305.7 kB / 439.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001785/0.2848, allocations: 1.038 MB / 440.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006293/0.2854, allocations: 283.7 kB / 440.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003477/0.2858, allocations: 149.7 kB / 440.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.462e-05/0.2858, allocations: 4 kB / 440.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.2858, allocations: 38.55 kB / 440.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.553e-06/0.2858, allocations: 0 / 440.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.00994/0.2958, allocations: 2.273 MB / 442.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.003e-05/0.2958, allocations: 85.05 kB / 443 MB, free: 10.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000379/0.2962, allocations: 293 kB / 443.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/0.2963, allocations: 37.7 kB / 443.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.2964, allocations: 168.7 kB / 443.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00014/0.2965, allocations: 154.7 kB / 443.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/0.2967, allocations: 86.09 kB / 443.7 MB, free: 9.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.2969, allocations: 338.8 kB / 444 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003991/0.2973, allocations: 164.8 kB / 444.2 MB, free: 9.227 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004485/0.2977, allocations: 226.7 kB / 444.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008581/0.2986, allocations: 407.8 kB / 444.8 MB, free: 8.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2986, allocations: 0 / 444.8 MB, free: 8.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001078/0.2997, allocations: 480.7 kB / 445.3 MB, free: 8.094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.2997, allocations: 8 kB / 445.3 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.2997, allocations: 0 / 445.3 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.2997, allocations: 8 kB / 445.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006482/0.3004, allocations: 128 kB / 445.4 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.3004, allocations: 3.938 kB / 445.4 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004118/0.3008, allocations: 31.98 kB / 445.5 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-05/0.3008, allocations: 19.98 kB / 445.5 MB, free: 7.898 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.0002029/0.301, allocations: 153.7 kB / 445.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.996e-05/0.3011, allocations: 31.77 kB / 445.7 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002051/0.3032, allocations: 0.6525 MB / 446.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.3032, allocations: 7.938 kB / 446.3 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3032, allocations: 0 / 446.3 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.3032, allocations: 7.984 kB / 446.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003352/0.3066, allocations: 1.169 MB / 447.5 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3066, allocations: 4 kB / 447.5 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000473/0.307, allocations: 91.88 kB / 447.6 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001684/0.3087, allocations: 268.5 kB / 447.9 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.688e-05/0.3088, allocations: 19.92 kB / 447.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004292/0.3131, allocations: 2.293 MB / 450.2 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3131, allocations: 0 / 450.2 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002473/0.3155, allocations: 1.019 MB / 451.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002022/0.3157, allocations: 67.8 kB / 451.3 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.106e-05/0.3158, allocations: 8 kB / 451.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000467/0.3163, allocations: 27.97 kB / 451.3 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.3164, allocations: 36.38 kB / 451.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.804e-05/0.3164, allocations: 15.98 kB / 451.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002672/0.3167, allocations: 216.5 kB / 451.6 MB, free: 1.613 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3167, allocations: 0 / 451.6 MB, free: 1.613 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006016/0.3173, allocations: 119.9 kB / 451.7 MB, free: 1.496 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.002974/0.3203, allocations: 1.586 MB / 453.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001025/0.3213, allocations: 414 kB / 453.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3213, allocations: 0 / 453.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007372/0.322, allocations: 361.3 kB / 454 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005395/0.3226, allocations: 48.61 kB / 454.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006346/0.3289, allocations: 3.891 MB / 457.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002151/0.3291, allocations: 175.1 kB / 458.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002262/0.3294, allocations: 46.95 kB / 458.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002395/0.3296, allocations: 119.4 kB / 458.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3296, allocations: 0 / 458.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4114/0.7411, allocations: 10.23 MB / 468.5 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.99, allocations: 7.812 kB / 468.5 MB, free: 0.625 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.459176161995856]