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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 111.2 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 191.7 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 39.94 kB / 371.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2875, allocations: 52.2 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004242/0.2918, allocations: 2.868 MB / 426.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002277/0.294, allocations: 1.238 MB / 427.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002248/0.2943, allocations: 4 kB / 427.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003099/0.2946, allocations: 67.41 kB / 427.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006417/0.2952, allocations: 235.8 kB / 427.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003123/0.2955, allocations: 111.8 kB / 427.9 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005373/0.2961, allocations: 467.1 kB / 428.4 MB, free: 9.617 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.2962, allocations: 56.91 kB / 428.4 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002831/0.2965, allocations: 187.4 kB / 428.6 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003432/0.2969, allocations: 219.2 kB / 428.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.521e-05/0.2969, allocations: 44 kB / 428.9 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003158/0.2973, allocations: 163.9 kB / 429 MB, free: 8.961 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.2974, allocations: 95.66 kB / 429.1 MB, free: 8.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001891/0.2976, allocations: 187.2 kB / 429.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006546/0.2982, allocations: 0.5016 MB / 429.8 MB, free: 8.184 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2982, allocations: 0 / 429.8 MB, free: 8.184 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2982, allocations: 0 / 429.8 MB, free: 8.184 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.2982, allocations: 4 kB / 429.8 MB, free: 8.18 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.001591/0.2998, allocations: 0.6414 MB / 430.5 MB, free: 7.508 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.2999, allocations: 8.031 kB / 430.5 MB, free: 7.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.368e-05/0.2999, allocations: 8.688 kB / 430.5 MB, free: 7.488 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.879e-05/0.3, allocations: 62.73 kB / 430.5 MB, free: 7.418 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.322e-05/0.3001, allocations: 36.7 kB / 430.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005555/0.3006, allocations: 279.3 kB / 430.9 MB, free: 7.082 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.3007, allocations: 102.3 kB / 431 MB, free: 6.965 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001607/0.3009, allocations: 36.11 kB / 431 MB, free: 6.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006497/0.3015, allocations: 321.6 kB / 431.3 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.3015, allocations: 3.938 kB / 431.3 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.892e-05/0.3016, allocations: 23.92 kB / 431.3 MB, free: 6.578 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.3016, allocations: 4 kB / 431.3 MB, free: 6.574 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006967/0.3023, allocations: 305.7 kB / 431.6 MB, free: 6.277 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.3041, allocations: 1.124 MB / 432.8 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006232/0.3047, allocations: 289 kB / 433 MB, free: 4.781 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000316/0.305, allocations: 149.1 kB / 433.2 MB, free: 4.633 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.3051, allocations: 4 kB / 433.2 MB, free: 4.629 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/0.3051, allocations: 46.44 kB / 433.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.633e-06/0.3051, allocations: 0 / 433.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.00908/0.3142, allocations: 2.27 MB / 435.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.811e-05/0.3142, allocations: 81.11 kB / 435.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003798/0.3146, allocations: 285.1 kB / 435.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.412e-05/0.3146, allocations: 33.7 kB / 435.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.3148, allocations: 176.6 kB / 436.1 MB, free: 1.664 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.3149, allocations: 146.7 kB / 436.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/0.3151, allocations: 78.11 kB / 436.3 MB, free: 1.434 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.3153, allocations: 350.7 kB / 436.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003995/0.3157, allocations: 160.8 kB / 436.8 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004455/0.3161, allocations: 230.6 kB / 437 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008458/0.3169, allocations: 403.6 kB / 437.4 MB, free: 276 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.3169, allocations: 4 kB / 437.4 MB, free: 272 kB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001044/0.318, allocations: 484.8 kB / 437.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.318, allocations: 8 kB / 437.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.318, allocations: 4 kB / 437.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.318, allocations: 4 kB / 437.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005768/0.3186, allocations: 119.8 kB / 438 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.3186, allocations: 7.984 kB / 438 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003596/0.319, allocations: 32.02 kB / 438.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.814e-05/0.319, allocations: 19.98 kB / 438.1 MB, free: 15.59 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.0001795/0.3192, allocations: 153.7 kB / 438.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.249e-05/0.3193, allocations: 31.81 kB / 438.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00179/0.3211, allocations: 0.6525 MB / 438.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.3211, allocations: 4 kB / 438.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3211, allocations: 0 / 438.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.3211, allocations: 7.984 kB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003077/0.3242, allocations: 1.243 MB / 440.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.3242, allocations: 0 / 440.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004396/0.3246, allocations: 91.89 kB / 440.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001532/0.3262, allocations: 280.4 kB / 440.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.856e-05/0.3262, allocations: 12 kB / 440.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003964/0.3302, allocations: 2.328 MB / 442.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3302, allocations: 0 / 442.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002246/0.3324, allocations: 1.012 MB / 443.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001627/0.3326, allocations: 71.8 kB / 443.9 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.209e-05/0.3326, allocations: 8 kB / 444 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004234/0.3331, allocations: 27.97 kB / 444 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.3332, allocations: 40.31 kB / 444 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.405e-05/0.3332, allocations: 11.98 kB / 444 MB, free: 9.422 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002347/0.3334, allocations: 216.5 kB / 444.2 MB, free: 9.207 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3334, allocations: 4 kB / 444.2 MB, free: 9.203 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005527/0.334, allocations: 119.9 kB / 444.4 MB, free: 9.086 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.002746/0.3367, allocations: 1.586 MB / 446 MB, free: 7.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009623/0.3377, allocations: 418.1 kB / 446.4 MB, free: 7.062 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3377, allocations: 0 / 446.4 MB, free: 7.062 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007032/0.3384, allocations: 368.9 kB / 446.7 MB, free: 6.688 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004692/0.3389, allocations: 48.92 kB / 446.8 MB, free: 6.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005764/0.3446, allocations: 3.862 MB / 450.6 MB, free: 2.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004264/0.3451, allocations: 0.7892 MB / 451.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001858/0.3453, allocations: 38.97 kB / 451.5 MB, free: 1.793 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.3455, allocations: 115.4 kB / 451.6 MB, free: 1.68 MB / 350.1 MB Notification: Performance of SimCode: time 1.073e-06/0.3455, allocations: 0 / 451.6 MB, free: 1.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03682/0.3823, allocations: 10.08 MB / 461.6 MB, free: 7.777 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.56/12.94, allocations: 12.05 kB / 461.7 MB, free: 7.766 MB / 366.1 MB " [Timeout remaining time 647] (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 --stepSize=4e-06 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.535108875017613]