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.001379/0.001379, allocations: 123.9 kB / 17.79 MB, free: 5.266 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.001341/0.001341, allocations: 185.2 kB / 20.73 MB, free: 2.332 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.498/1.498, allocations: 225.6 MB / 249.1 MB, free: 3.598 MB / 190.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="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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 47.92 kB / 365.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1044, allocations: 52.15 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004261/0.1087, allocations: 2.828 MB / 420.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002027/0.1107, allocations: 1.238 MB / 421.8 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.1108, allocations: 3.938 kB / 421.9 MB, free: 8.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002794/0.1111, allocations: 75.42 kB / 421.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005356/0.1116, allocations: 222.7 kB / 422.1 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000241/0.1119, allocations: 123.8 kB / 422.3 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004819/0.1124, allocations: 455 kB / 422.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.1125, allocations: 68.64 kB / 422.8 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002415/0.1128, allocations: 183.5 kB / 423 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002901/0.1131, allocations: 227.1 kB / 423.2 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.979e-05/0.1131, allocations: 40 kB / 423.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002658/0.1134, allocations: 163.9 kB / 423.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.42e-05/0.1135, allocations: 91.72 kB / 423.5 MB, free: 6.902 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000165/0.1136, allocations: 179.2 kB / 423.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006008/0.1142, allocations: 0.5098 MB / 424.2 MB, free: 6.215 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1142, allocations: 3.938 kB / 424.2 MB, free: 6.211 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1142, allocations: 0 / 424.2 MB, free: 6.211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.1143, allocations: 0 / 424.2 MB, free: 6.211 MB / 350.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.001639/0.1159, allocations: 0.7129 MB / 424.9 MB, free: 5.449 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1159, allocations: 8.031 kB / 424.9 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.369e-05/0.116, allocations: 66.72 kB / 424.9 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.107e-05/0.1161, allocations: 36.7 kB / 425 MB, free: 5.332 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004964/0.1166, allocations: 333.5 kB / 425.3 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.366e-05/0.1167, allocations: 46.83 kB / 425.3 MB, free: 4.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000158/0.1168, allocations: 40.3 kB / 425.4 MB, free: 4.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005778/0.1174, allocations: 320.4 kB / 425.7 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.1174, allocations: 12 kB / 425.7 MB, free: 4.535 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.937e-05/0.1175, allocations: 8 kB / 425.7 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.1175, allocations: 8 kB / 425.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006415/0.1181, allocations: 298 kB / 426 MB, free: 4.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/0.1198, allocations: 1.164 MB / 427.2 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005889/0.1204, allocations: 297.4 kB / 427.5 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000316/0.1207, allocations: 157.6 kB / 427.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.1208, allocations: 7.938 kB / 427.6 MB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.1208, allocations: 38.56 kB / 427.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.393e-06/0.1208, allocations: 4 kB / 427.7 MB, free: 2.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.009035/0.1298, allocations: 2.418 MB / 430.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.635e-05/0.1299, allocations: 81.11 kB / 430.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000327/0.1302, allocations: 285 kB / 430.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.614e-05/0.1303, allocations: 33.7 kB / 430.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.1304, allocations: 164.7 kB / 430.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.1305, allocations: 154.6 kB / 430.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/0.1306, allocations: 82.11 kB / 430.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.1308, allocations: 342.8 kB / 431.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003811/0.1312, allocations: 160.8 kB / 431.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004241/0.1316, allocations: 234.6 kB / 431.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008164/0.1324, allocations: 411.6 kB / 432 MB, free: 13.97 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1324, allocations: 0 / 432 MB, free: 13.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001005/0.1334, allocations: 496.5 kB / 432.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.1334, allocations: 4 kB / 432.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.289e-06/0.1334, allocations: 0 / 432.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.1335, allocations: 4 kB / 432.5 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005814/0.134, allocations: 115.9 kB / 432.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.134, allocations: 4 kB / 432.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003704/0.1344, allocations: 36 kB / 432.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.781e-05/0.1345, allocations: 23.92 kB / 432.7 MB, free: 13.3 MB / 366.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.0001654/0.1346, allocations: 158.3 kB / 432.8 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.843e-05/0.1347, allocations: 27.81 kB / 432.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001783/0.1365, allocations: 0.6525 MB / 433.5 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.1365, allocations: 4 kB / 433.5 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.1365, allocations: 0 / 433.5 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.537e-06/0.1365, allocations: 11.98 kB / 433.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003099/0.1396, allocations: 1.268 MB / 434.8 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1396, allocations: 0 / 434.8 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004353/0.1401, allocations: 91.89 kB / 434.9 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001522/0.1416, allocations: 280.4 kB / 435.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.295e-05/0.1416, allocations: 8 kB / 435.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003873/0.1455, allocations: 2.443 MB / 437.6 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1455, allocations: 3.984 kB / 437.6 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002239/0.1477, allocations: 1.011 MB / 438.6 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001897/0.1479, allocations: 140.9 kB / 438.8 MB, free: 6.949 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.437e-05/0.148, allocations: 12 kB / 438.8 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004208/0.1484, allocations: 31.97 kB / 438.8 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.1485, allocations: 32.39 kB / 438.8 MB, free: 6.875 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.307e-05/0.1485, allocations: 15.98 kB / 438.8 MB, free: 6.859 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002308/0.1488, allocations: 212.6 kB / 439.1 MB, free: 6.648 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1488, allocations: 4 kB / 439.1 MB, free: 6.645 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005289/0.1493, allocations: 119.9 kB / 439.2 MB, free: 6.527 MB / 366.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.002659/0.1519, allocations: 1.595 MB / 440.8 MB, free: 4.902 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008889/0.1528, allocations: 410 kB / 441.2 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1528, allocations: 0 / 441.2 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006644/0.1535, allocations: 364.7 kB / 441.5 MB, free: 4.141 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004632/0.154, allocations: 40.8 kB / 441.6 MB, free: 4.102 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005589/0.1595, allocations: 3.85 MB / 445.4 MB, free: 120 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1878/0.3473, allocations: 0.7873 MB / 446.2 MB, free: 30.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000306/0.3476, allocations: 38.75 kB / 446.2 MB, free: 30.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002162/0.3479, allocations: 117.8 kB / 446.4 MB, free: 30.18 MB / 366.1 MB Notification: Performance of SimCode: time 1.242e-06/0.3479, allocations: 4.188 kB / 446.4 MB, free: 30.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04302/0.3909, allocations: 9.722 MB / 456.1 MB, free: 29.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.53, allocations: 18.48 kB / 456.1 MB, free: 29.16 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.311433990951627]