Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009673/0.0009673, allocations: 174 kB / 23.94 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8903/0.8903, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.795e-06/2.795e-06, allocations: 3.984 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.469e-05/1.748e-05, allocations: 2.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.003353/0.003371, allocations: 2.677 MB / 327.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00163/0.005001, allocations: 1.211 MB / 328.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002077/0.005209, allocations: 7.938 kB / 328.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002164/0.005425, allocations: 63.38 kB / 328.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000479/0.005904, allocations: 238.5 kB / 328.8 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002495/0.006154, allocations: 135.6 kB / 328.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003969/0.006551, allocations: 479.3 kB / 329.4 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.006695, allocations: 60.83 kB / 329.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003167/0.007012, allocations: 267.5 kB / 329.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002083/0.00722, allocations: 175.5 kB / 329.9 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.693e-05/0.007267, allocations: 44 kB / 329.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002056/0.007473, allocations: 155.9 kB / 330.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.199e-05/0.007525, allocations: 91.7 kB / 330.1 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.819e-05/0.007613, allocations: 139.6 kB / 330.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005047/0.008118, allocations: 0.5568 MB / 330.8 MB, free: 9.648 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.00812, allocations: 0 / 330.8 MB, free: 9.648 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.008121, allocations: 0 / 330.8 MB, free: 9.648 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.008126, allocations: 0 / 330.8 MB, free: 9.648 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.0009974/0.009124, allocations: 0.6297 MB / 331.5 MB, free: 8.988 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.009166, allocations: 16.03 kB / 331.5 MB, free: 8.973 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.729e-05/0.009223, allocations: 66.72 kB / 331.5 MB, free: 8.898 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.00935, allocations: 44.73 kB / 331.6 MB, free: 8.855 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/0.009678, allocations: 278.5 kB / 331.9 MB, free: 8.555 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.161e-05/0.00975, allocations: 110.2 kB / 332 MB, free: 8.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-05/0.009844, allocations: 32.73 kB / 332 MB, free: 8.398 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003937/0.01024, allocations: 351.6 kB / 332.3 MB, free: 8.035 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.01025, allocations: 7.984 kB / 332.4 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.257e-05/0.01027, allocations: 8 kB / 332.4 MB, free: 8.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.01028, allocations: 8 kB / 332.4 MB, free: 8.012 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003949/0.01067, allocations: 297.7 kB / 332.7 MB, free: 7.723 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/0.01179, allocations: 1.038 MB / 333.7 MB, free: 6.613 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004955/0.01228, allocations: 280.9 kB / 334 MB, free: 6.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001896/0.01247, allocations: 161.6 kB / 334.1 MB, free: 6.156 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.875e-05/0.01249, allocations: 4 kB / 334.1 MB, free: 6.152 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.814e-05/0.01251, allocations: 38.56 kB / 334.2 MB, free: 6.105 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.753e-06/0.01251, allocations: 0 / 334.2 MB, free: 6.105 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.004588/0.0171, allocations: 2.269 MB / 336.4 MB, free: 3.797 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.01713, allocations: 85.11 kB / 336.5 MB, free: 3.695 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002173/0.01735, allocations: 297.8 kB / 336.8 MB, free: 3.398 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.867e-05/0.01738, allocations: 33.7 kB / 336.8 MB, free: 3.359 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.523e-05/0.01746, allocations: 164.7 kB / 337 MB, free: 3.191 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.844e-05/0.01753, allocations: 154.7 kB / 337.2 MB, free: 3.039 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.273e-05/0.01763, allocations: 78.17 kB / 337.2 MB, free: 2.953 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.051e-05/0.01771, allocations: 342.8 kB / 337.6 MB, free: 2.609 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.01794, allocations: 168.9 kB / 337.7 MB, free: 2.445 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000257/0.0182, allocations: 231.2 kB / 338 MB, free: 2.199 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004927/0.01869, allocations: 403.5 kB / 338.4 MB, free: 1.785 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.01869, allocations: 4 kB / 338.4 MB, free: 1.781 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005985/0.01929, allocations: 488.8 kB / 338.8 MB, free: 1.297 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.01931, allocations: 8 kB / 338.8 MB, free: 1.289 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.738e-06/0.01931, allocations: 0 / 338.8 MB, free: 1.289 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.01932, allocations: 4 kB / 338.8 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002862/0.01961, allocations: 119.8 kB / 339 MB, free: 1.164 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.01962, allocations: 4 kB / 339 MB, free: 1.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002116/0.01983, allocations: 36.02 kB / 339 MB, free: 1.125 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.37e-05/0.01986, allocations: 19.98 kB / 339 MB, free: 1.105 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.0001175/0.01998, allocations: 141.8 kB / 339.2 MB, free: 0.957 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.623e-05/0.02005, allocations: 43.7 kB / 339.2 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001044/0.02109, allocations: 0.6462 MB / 339.8 MB, free: 264 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.02109, allocations: 4 kB / 339.9 MB, free: 260 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.0211, allocations: 0 / 339.9 MB, free: 260 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.0211, allocations: 7.984 kB / 339.9 MB, free: 252 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001717/0.02282, allocations: 1.171 MB / 341 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.02283, allocations: 7.938 kB / 341 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002259/0.02305, allocations: 87.88 kB / 341.1 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007387/0.02379, allocations: 268.6 kB / 341.4 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.751e-05/0.02382, allocations: 19.97 kB / 341.4 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002327/0.02614, allocations: 2.309 MB / 343.7 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.02615, allocations: 0 / 343.7 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001302/0.02745, allocations: 1.017 MB / 344.7 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/0.02756, allocations: 71.8 kB / 344.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.144e-05/0.02759, allocations: 8 kB / 344.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.02779, allocations: 31.97 kB / 344.8 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.451e-05/0.02789, allocations: 36.44 kB / 344.9 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.02791, allocations: 15.98 kB / 344.9 MB, free: 11.02 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001522/0.02806, allocations: 213.2 kB / 345.1 MB, free: 10.81 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02806, allocations: 0 / 345.1 MB, free: 10.81 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003632/0.02842, allocations: 119.9 kB / 345.2 MB, free: 10.7 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.001658/0.03008, allocations: 1.589 MB / 346.8 MB, free: 9.074 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005703/0.03065, allocations: 411 kB / 347.2 MB, free: 8.676 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.03065, allocations: 0 / 347.2 MB, free: 8.676 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004286/0.03108, allocations: 361.4 kB / 347.6 MB, free: 8.309 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.0314, allocations: 40.67 kB / 347.6 MB, free: 8.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003552/0.03496, allocations: 3.77 MB / 351.4 MB, free: 4.379 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001669/0.03512, allocations: 183.1 kB / 351.6 MB, free: 4.18 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001207/0.03524, allocations: 38.97 kB / 351.6 MB, free: 4.141 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/0.0354, allocations: 120.4 kB / 351.7 MB, free: 4.023 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.0354, allocations: 0 / 351.7 MB, free: 4.023 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02258/0.05798, allocations: 10.28 MB / 362 MB, free: 9.918 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.005/8.063, allocations: 8 kB / 362 MB, free: 9.91 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 9.914917972870171]