Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008186/0.0008186, allocations: 84.34 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008904/0.0008904, allocations: 156.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8647/0.8647, allocations: 177 MB / 204.1 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.907e-06/3.907e-06, allocations: 3.984 kB / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.095e-05/1.486e-05, allocations: 3.125 kB / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.002508/0.002523, allocations: 2.692 MB / 327.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.003843, allocations: 1.199 MB / 328.4 MB, free: 12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.003963, allocations: 4 kB / 328.4 MB, free: 12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002081/0.004171, allocations: 75.31 kB / 328.5 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003992/0.00457, allocations: 230.5 kB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001947/0.004765, allocations: 135.6 kB / 328.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003116/0.005077, allocations: 478.7 kB / 329.3 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.005193, allocations: 52.89 kB / 329.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002691/0.005462, allocations: 279.4 kB / 329.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004036/0.005866, allocations: 171.6 kB / 329.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.342e-05/0.00591, allocations: 40 kB / 329.8 MB, free: 10.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001876/0.006097, allocations: 159.9 kB / 330 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.514e-05/0.006152, allocations: 99.64 kB / 330.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.473e-05/0.006237, allocations: 131.7 kB / 330.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004126/0.00665, allocations: 0.5529 MB / 330.8 MB, free: 9.625 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.006652, allocations: 0 / 330.8 MB, free: 9.625 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.006653, allocations: 0 / 330.8 MB, free: 9.625 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.006657, allocations: 0 / 330.8 MB, free: 9.625 MB / 298.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.00093/0.007587, allocations: 0.6336 MB / 331.4 MB, free: 8.961 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.007621, allocations: 15.98 kB / 331.4 MB, free: 8.945 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.139e-05/0.007672, allocations: 62.72 kB / 331.5 MB, free: 8.875 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.007786, allocations: 44.73 kB / 331.5 MB, free: 8.832 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003167/0.008103, allocations: 278.7 kB / 331.8 MB, free: 8.531 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.884e-05/0.008171, allocations: 106.3 kB / 331.9 MB, free: 8.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.063e-05/0.008262, allocations: 32.73 kB / 331.9 MB, free: 8.379 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003892/0.008651, allocations: 355.5 kB / 332.3 MB, free: 8.012 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.008662, allocations: 0 / 332.3 MB, free: 8.012 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.25e-05/0.008685, allocations: 12 kB / 332.3 MB, free: 8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.008693, allocations: 15.92 kB / 332.3 MB, free: 7.984 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004008/0.009093, allocations: 293.8 kB / 332.6 MB, free: 7.699 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.01018, allocations: 1.038 MB / 333.6 MB, free: 6.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003742/0.01056, allocations: 281 kB / 333.9 MB, free: 6.297 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001897/0.01075, allocations: 161.6 kB / 334.1 MB, free: 6.133 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.01076, allocations: 4 kB / 334.1 MB, free: 6.129 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.01079, allocations: 38.56 kB / 334.1 MB, free: 6.082 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.302e-06/0.01079, allocations: 0 / 334.1 MB, free: 6.082 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.004656/0.01544, allocations: 2.269 MB / 336.4 MB, free: 3.773 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/0.01548, allocations: 81.11 kB / 336.5 MB, free: 3.676 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002162/0.0157, allocations: 301.8 kB / 336.8 MB, free: 3.375 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002923/0.01599, allocations: 33.7 kB / 336.8 MB, free: 3.336 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.531e-05/0.01606, allocations: 164.7 kB / 336.9 MB, free: 3.168 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.849e-05/0.01614, allocations: 154.7 kB / 337.1 MB, free: 3.016 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.18e-05/0.01623, allocations: 78.17 kB / 337.2 MB, free: 2.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.483e-05/0.01632, allocations: 342.8 kB / 337.5 MB, free: 2.586 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/0.01655, allocations: 168.9 kB / 337.7 MB, free: 2.422 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002587/0.01681, allocations: 231.2 kB / 337.9 MB, free: 2.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005051/0.01732, allocations: 395.6 kB / 338.3 MB, free: 1.773 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.01732, allocations: 0 / 338.3 MB, free: 1.773 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006131/0.01793, allocations: 0.4965 MB / 338.8 MB, free: 1.266 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.01795, allocations: 4 kB / 338.8 MB, free: 1.262 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.01795, allocations: 4 kB / 338.8 MB, free: 1.258 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.01797, allocations: 4 kB / 338.8 MB, free: 1.254 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002904/0.01826, allocations: 115.8 kB / 338.9 MB, free: 1.141 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.01826, allocations: 4.125 kB / 338.9 MB, free: 1.137 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.01843, allocations: 35.98 kB / 338.9 MB, free: 1.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.195e-05/0.01846, allocations: 19.98 kB / 339 MB, free: 1.082 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.0001121/0.01857, allocations: 149.7 kB / 339.1 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.524e-05/0.01862, allocations: 39.7 kB / 339.2 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001011/0.01963, allocations: 0.6463 MB / 339.8 MB, free: 232 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.01964, allocations: 4 kB / 339.8 MB, free: 228 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.01964, allocations: 0 / 339.8 MB, free: 228 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.01965, allocations: 11.97 kB / 339.8 MB, free: 216 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001729/0.02138, allocations: 1.179 MB / 341 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.02138, allocations: 0 / 341 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002267/0.02161, allocations: 95.88 kB / 341.1 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007539/0.02236, allocations: 268.6 kB / 341.3 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/0.02238, allocations: 11.98 kB / 341.4 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002284/0.02467, allocations: 2.309 MB / 343.7 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.02467, allocations: 0 / 343.7 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/0.02622, allocations: 1.006 MB / 344.7 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.02633, allocations: 71.8 kB / 344.7 MB, free: 11.09 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.003e-05/0.02636, allocations: 11.94 kB / 344.8 MB, free: 11.08 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000203/0.02656, allocations: 31.97 kB / 344.8 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.689e-05/0.02664, allocations: 36.44 kB / 344.8 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.125e-05/0.02666, allocations: 19.98 kB / 344.8 MB, free: 11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001389/0.0268, allocations: 213.2 kB / 345.1 MB, free: 10.78 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0268, allocations: 0 / 345.1 MB, free: 10.78 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003442/0.02714, allocations: 119.9 kB / 345.2 MB, free: 10.66 MB / 314.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.001572/0.02871, allocations: 1.585 MB / 346.8 MB, free: 9.051 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005546/0.02927, allocations: 414.9 kB / 347.2 MB, free: 8.645 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.02927, allocations: 4 kB / 347.2 MB, free: 8.641 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004232/0.02969, allocations: 357.4 kB / 347.5 MB, free: 8.277 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/0.03001, allocations: 44.17 kB / 347.6 MB, free: 8.238 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003689/0.0337, allocations: 3.76 MB / 351.3 MB, free: 4.355 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001126/0.03382, allocations: 183.1 kB / 351.5 MB, free: 4.152 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001183/0.03393, allocations: 38.97 kB / 351.5 MB, free: 4.113 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001578/0.03409, allocations: 120.4 kB / 351.6 MB, free: 3.996 MB / 314.7 MB Notification: Performance of SimCode: time 9.61e-07/0.03409, allocations: 0 / 351.6 MB, free: 3.996 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02168/0.05578, allocations: 10.28 MB / 361.9 MB, free: 9.863 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.889/7.945, allocations: 3.094 kB / 361.9 MB, free: 9.863 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 9.752597696147859]