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.00086/0.00086, allocations: 84.72 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.0007497/0.0007497, allocations: 145.1 kB / 23.93 MB, free: 0.6289 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.8868/0.8868, allocations: 173.4 MB / 200.5 MB, free: 9.422 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.492e-06/1.492e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.083e-05/1.232e-05, allocations: 5.516 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.00256/0.002572, allocations: 2.659 MB / 321.1 MB, free: 3.676 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.00386, allocations: 1.156 MB / 322.2 MB, free: 2.512 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.003979, allocations: 4 kB / 322.3 MB, free: 2.508 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000201/0.00418, allocations: 63.44 kB / 322.3 MB, free: 2.445 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004031/0.004583, allocations: 238.4 kB / 322.5 MB, free: 2.211 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001872/0.00477, allocations: 123.7 kB / 322.7 MB, free: 2.09 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003176/0.005088, allocations: 470.9 kB / 323.1 MB, free: 1.625 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.005205, allocations: 56.91 kB / 323.2 MB, free: 1.57 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002242/0.005429, allocations: 271.4 kB / 323.4 MB, free: 1.305 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.005597, allocations: 179.5 kB / 323.6 MB, free: 1.129 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.07e-05/0.005637, allocations: 40 kB / 323.7 MB, free: 1.09 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001705/0.005808, allocations: 147.9 kB / 323.8 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.111e-05/0.005869, allocations: 99.69 kB / 323.9 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.289e-05/0.005962, allocations: 135.6 kB / 324 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004168/0.006378, allocations: 0.5451 MB / 324.6 MB, free: 172 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.543e-06/0.00638, allocations: 0 / 324.6 MB, free: 172 kB / 282.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.006381, allocations: 0 / 324.6 MB, free: 172 kB / 282.7 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.006386, allocations: 4 kB / 324.6 MB, free: 168 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.00096/0.007346, allocations: 0.6246 MB / 325.2 MB, free: 15.51 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.007382, allocations: 12.92 kB / 325.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.96e-05/0.007432, allocations: 66.72 kB / 325.3 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.997e-05/0.007492, allocations: 36.75 kB / 325.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003147/0.007807, allocations: 278.5 kB / 325.6 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.971e-05/0.007876, allocations: 102.3 kB / 325.7 MB, free: 14.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.871e-05/0.007975, allocations: 44.69 kB / 325.7 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003867/0.008362, allocations: 348.9 kB / 326.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.008374, allocations: 0 / 326.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.079e-05/0.008395, allocations: 8 kB / 326.1 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.008402, allocations: 8 kB / 326.1 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004046/0.008806, allocations: 309.7 kB / 326.4 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.009927, allocations: 1.038 MB / 327.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003839/0.01031, allocations: 285 kB / 327.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001908/0.0105, allocations: 161.5 kB / 327.9 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.01052, allocations: 4 kB / 327.9 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.034e-05/0.01054, allocations: 34.56 kB / 327.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.272e-06/0.01054, allocations: 0 / 327.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.00468/0.01522, allocations: 2.267 MB / 330.2 MB, free: 10.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.541e-05/0.01526, allocations: 81.11 kB / 330.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002222/0.01548, allocations: 293.8 kB / 330.5 MB, free: 9.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/0.01551, allocations: 37.64 kB / 330.6 MB, free: 9.887 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.679e-05/0.01558, allocations: 172.6 kB / 330.7 MB, free: 9.711 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.712e-05/0.01566, allocations: 146.8 kB / 330.9 MB, free: 9.566 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.756e-05/0.01576, allocations: 82.12 kB / 331 MB, free: 9.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.534e-05/0.01584, allocations: 342.8 kB / 331.3 MB, free: 9.137 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002383/0.01608, allocations: 164.8 kB / 331.5 MB, free: 8.977 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002549/0.01634, allocations: 227.2 kB / 331.7 MB, free: 8.734 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004969/0.01683, allocations: 399.8 kB / 332.1 MB, free: 8.324 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.01684, allocations: 0 / 332.1 MB, free: 8.324 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005974/0.01743, allocations: 492.6 kB / 332.6 MB, free: 7.836 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.01745, allocations: 4 kB / 332.6 MB, free: 7.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.01745, allocations: 4 kB / 332.6 MB, free: 7.828 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.01746, allocations: 8.125 kB / 332.6 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000291/0.01776, allocations: 123.8 kB / 332.7 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.01776, allocations: 4 kB / 332.7 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001704/0.01793, allocations: 27.98 kB / 332.7 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.137e-05/0.01795, allocations: 15.98 kB / 332.7 MB, free: 7.652 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.000114/0.01807, allocations: 161.7 kB / 332.9 MB, free: 7.484 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.282e-05/0.01812, allocations: 31.81 kB / 332.9 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009999/0.01912, allocations: 0.6424 MB / 333.6 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.01912, allocations: 8 kB / 333.6 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.01913, allocations: 0 / 333.6 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.01913, allocations: 7.922 kB / 333.6 MB, free: 6.793 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001715/0.02085, allocations: 1.175 MB / 334.8 MB, free: 5.566 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.02085, allocations: 0 / 334.8 MB, free: 5.566 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002244/0.02108, allocations: 91.88 kB / 334.9 MB, free: 5.477 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007514/0.02183, allocations: 272.4 kB / 335.1 MB, free: 5.207 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.325e-05/0.02185, allocations: 12 kB / 335.1 MB, free: 5.195 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002242/0.02409, allocations: 2.309 MB / 337.4 MB, free: 2.766 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.02409, allocations: 4.062 kB / 337.4 MB, free: 2.762 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/0.02548, allocations: 1.01 MB / 338.5 MB, free: 1.734 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.02559, allocations: 67.78 kB / 338.5 MB, free: 1.668 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.827e-05/0.02563, allocations: 12 kB / 338.5 MB, free: 1.656 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.02585, allocations: 31.92 kB / 338.6 MB, free: 1.625 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.289e-05/0.02593, allocations: 36.42 kB / 338.6 MB, free: 1.586 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.925e-05/0.02595, allocations: 12 kB / 338.6 MB, free: 1.574 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001416/0.0261, allocations: 221.2 kB / 338.8 MB, free: 1.359 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0261, allocations: 0 / 338.8 MB, free: 1.359 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000349/0.02644, allocations: 119.9 kB / 338.9 MB, free: 1.242 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.001651/0.0281, allocations: 1.593 MB / 340.5 MB, free: 15.62 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005919/0.02869, allocations: 411 kB / 340.9 MB, free: 15.21 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.02869, allocations: 0 / 340.9 MB, free: 15.21 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000421/0.02911, allocations: 361.9 kB / 341.3 MB, free: 14.85 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.02944, allocations: 40.42 kB / 341.3 MB, free: 14.81 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003667/0.0331, allocations: 3.742 MB / 345.1 MB, free: 10.94 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001334/0.03324, allocations: 190.9 kB / 345.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000124/0.03336, allocations: 42.95 kB / 345.3 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001652/0.03352, allocations: 120.4 kB / 345.4 MB, free: 10.57 MB / 314.7 MB Notification: Performance of SimCode: time 5.31e-07/0.03353, allocations: 0 / 345.4 MB, free: 10.57 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02244/0.05597, allocations: 10.24 MB / 355.7 MB, free: 0.5 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.994/8.05, allocations: 19.89 kB / 355.7 MB, free: 500 kB / 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 & /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/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] Reference file matches [Calling sys.exit(0), Time elapsed: 9.810885521583259]