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.0009302/0.0009302, allocations: 76.08 kB / 20.67 MB, free: 3.883 MB / 18.57 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.001081/0.001081, allocations: 149.1 kB / 23.93 MB, free: 0.6211 MB / 18.57 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 0.9129/0.9129, allocations: 173.4 MB / 200.4 MB, free: 9.449 MB / 186.7 MB " [Timeout remaining time 179] 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 1.403e-06/1.403e-06, allocations: 0 / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.712e-05/1.852e-05, allocations: 6.281 kB / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.002795/0.002814, allocations: 2.66 MB / 321.1 MB, free: 3.695 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001427/0.00424, allocations: 1.156 MB / 322.2 MB, free: 2.531 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.004381, allocations: 4 kB / 322.3 MB, free: 2.527 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000229/0.00461, allocations: 59.44 kB / 322.3 MB, free: 2.469 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004514/0.005061, allocations: 242.4 kB / 322.5 MB, free: 2.23 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001986/0.00526, allocations: 111.8 kB / 322.7 MB, free: 2.121 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003296/0.00559, allocations: 478.8 kB / 323.1 MB, free: 1.648 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.00572, allocations: 56.91 kB / 323.2 MB, free: 1.594 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005136/0.006234, allocations: 267.4 kB / 323.4 MB, free: 1.332 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.006416, allocations: 179.5 kB / 323.6 MB, free: 1.156 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.268e-05/0.006459, allocations: 44 kB / 323.7 MB, free: 1.113 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001918/0.006651, allocations: 151.9 kB / 323.8 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.209e-05/0.006703, allocations: 91.69 kB / 323.9 MB, free: 0.875 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.942e-05/0.006792, allocations: 135.6 kB / 324 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004458/0.007238, allocations: 0.5451 MB / 324.6 MB, free: 200 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.007242, allocations: 4 kB / 324.6 MB, free: 196 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.007243, allocations: 4 kB / 324.6 MB, free: 192 kB / 282.7 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.007249, allocations: 0 / 324.6 MB, free: 192 kB / 282.7 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.001062/0.008311, allocations: 0.6235 MB / 325.2 MB, free: 15.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.008352, allocations: 8.922 kB / 325.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.48e-05/0.008406, allocations: 66.72 kB / 325.3 MB, free: 15.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.23e-05/0.008469, allocations: 44.7 kB / 325.3 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003512/0.00882, allocations: 274.5 kB / 325.6 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.646e-05/0.008916, allocations: 110.3 kB / 325.7 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-05/0.009014, allocations: 36.72 kB / 325.7 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004005/0.009415, allocations: 350.2 kB / 326.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.009427, allocations: 0 / 326.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.643e-05/0.009454, allocations: 12 kB / 326.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.009462, allocations: 7.984 kB / 326.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004158/0.009877, allocations: 297.7 kB / 326.4 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00119/0.01107, allocations: 1.042 MB / 327.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003934/0.01146, allocations: 285 kB / 327.7 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001941/0.01165, allocations: 157.4 kB / 327.9 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.01168, allocations: 7.938 kB / 327.9 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.0117, allocations: 34.56 kB / 327.9 MB, free: 12.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.563e-06/0.0117, allocations: 0 / 327.9 MB, free: 12.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.004849/0.01655, allocations: 2.263 MB / 330.2 MB, free: 10.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.01659, allocations: 81.11 kB / 330.2 MB, free: 10.26 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005292/0.01712, allocations: 297.8 kB / 330.5 MB, free: 9.957 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.58e-05/0.01715, allocations: 41.64 kB / 330.6 MB, free: 9.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.17e-05/0.01725, allocations: 164.6 kB / 330.7 MB, free: 9.742 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.137e-05/0.01734, allocations: 154.7 kB / 330.9 MB, free: 9.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.763e-05/0.01743, allocations: 82.11 kB / 331 MB, free: 9.504 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.769e-05/0.01753, allocations: 342.7 kB / 331.3 MB, free: 9.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002519/0.01778, allocations: 164.9 kB / 331.5 MB, free: 9 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002804/0.01806, allocations: 231.3 kB / 331.7 MB, free: 8.754 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000524/0.01859, allocations: 395.8 kB / 332.1 MB, free: 8.348 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.01859, allocations: 0 / 332.1 MB, free: 8.348 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006687/0.01926, allocations: 488.6 kB / 332.6 MB, free: 7.863 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.01928, allocations: 10.81 kB / 332.6 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.01929, allocations: 4.188 kB / 332.6 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.01931, allocations: 7.938 kB / 332.6 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003159/0.01963, allocations: 119.8 kB / 332.7 MB, free: 7.727 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.01964, allocations: 4 kB / 332.7 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.01982, allocations: 27.98 kB / 332.7 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.639e-05/0.01985, allocations: 23.92 kB / 332.7 MB, free: 7.672 MB / 298.7 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.0001336/0.01998, allocations: 157.7 kB / 332.9 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.57e-05/0.02004, allocations: 31.81 kB / 332.9 MB, free: 7.477 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/0.0211, allocations: 0.6462 MB / 333.6 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.02111, allocations: 4 kB / 333.6 MB, free: 6.824 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.02111, allocations: 0 / 333.6 MB, free: 6.824 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.02112, allocations: 7.984 kB / 333.6 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0019/0.02302, allocations: 1.175 MB / 334.8 MB, free: 5.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.02302, allocations: 4 kB / 334.8 MB, free: 5.586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002481/0.02327, allocations: 91.88 kB / 334.9 MB, free: 5.496 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008645/0.02413, allocations: 268.5 kB / 335.1 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.02416, allocations: 8 kB / 335.1 MB, free: 5.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0028/0.02696, allocations: 2.313 MB / 337.4 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.02697, allocations: 0 / 337.4 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/0.02839, allocations: 1.006 MB / 338.4 MB, free: 1.766 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.02852, allocations: 75.78 kB / 338.5 MB, free: 1.691 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.133e-05/0.02855, allocations: 8 kB / 338.5 MB, free: 1.684 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002117/0.02876, allocations: 27.92 kB / 338.6 MB, free: 1.656 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.186e-05/0.02885, allocations: 36.42 kB / 338.6 MB, free: 1.617 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.02887, allocations: 20 kB / 338.6 MB, free: 1.598 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001614/0.02904, allocations: 217.1 kB / 338.8 MB, free: 1.387 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02904, allocations: 0 / 338.8 MB, free: 1.387 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004028/0.02944, allocations: 123.9 kB / 338.9 MB, free: 1.266 MB / 298.7 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.00174/0.03118, allocations: 1.589 MB / 340.5 MB, free: 15.64 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006373/0.03182, allocations: 415 kB / 340.9 MB, free: 15.24 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.03182, allocations: 0 / 340.9 MB, free: 15.24 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004644/0.03228, allocations: 365.8 kB / 341.3 MB, free: 14.87 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003686/0.03265, allocations: 39.48 kB / 341.3 MB, free: 14.83 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003992/0.03664, allocations: 3.741 MB / 345.1 MB, free: 10.97 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001307/0.03677, allocations: 187 kB / 345.3 MB, free: 10.76 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001465/0.03692, allocations: 42.95 kB / 345.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.03708, allocations: 116.4 kB / 345.4 MB, free: 10.6 MB / 314.7 MB Notification: Performance of SimCode: time 1.412e-06/0.03708, allocations: 0 / 345.4 MB, free: 10.6 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02713/0.06421, allocations: 10.24 MB / 355.7 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.075/8.139, allocations: 17 kB / 355.7 MB, free: 0.5195 MB / 314.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 4e-06 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.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins/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] "" Variables in the reference:time,core.B,core.Hstat,core.MagRel,winding.i Variables in the result:time,core.B,core.Hstat,core.MagRel,winding.i [Calling sys.exit(0), Time elapsed: 10.085916994139552]