Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001681/0.001681, allocations: 109.6 kB / 21.18 MB, free: 0.6992 MB / 14.72 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.002068/0.002068, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.451/1.451, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 52.44 kB / 347.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3236, allocations: 49.16 MB / 396.3 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004422/0.328, allocations: 2.792 MB / 399.1 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.3304, allocations: 1.295 MB / 400.4 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003005/0.3307, allocations: 7.375 kB / 400.4 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003417/0.3311, allocations: 70.92 kB / 400.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007107/0.3318, allocations: 228.6 kB / 400.7 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003676/0.3322, allocations: 122.7 kB / 400.9 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005882/0.3327, allocations: 459.1 kB / 401.3 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.3329, allocations: 65.66 kB / 401.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003362/0.3333, allocations: 192.9 kB / 401.6 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003746/0.3336, allocations: 218.7 kB / 401.8 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.299e-05/0.3337, allocations: 40.28 kB / 401.8 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003976/0.3341, allocations: 158.9 kB / 402 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.202e-05/0.3342, allocations: 98.81 kB / 402.1 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001961/0.3344, allocations: 186.5 kB / 402.2 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008191/0.3352, allocations: 0.5068 MB / 402.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.3352, allocations: 0 / 402.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.317e-06/0.3352, allocations: 0 / 402.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.3352, allocations: 0 / 402.7 MB, free: 5.066 MB / 318.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.001822/0.337, allocations: 0.6405 MB / 403.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.706e-05/0.3371, allocations: 13.39 kB / 403.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.289e-05/0.3372, allocations: 64.53 kB / 403.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.3373, allocations: 36.16 kB / 403.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005827/0.3379, allocations: 264.1 kB / 403.8 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/0.338, allocations: 102.3 kB / 403.9 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001707/0.3382, allocations: 50.34 kB / 403.9 MB, free: 4.207 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006909/0.3389, allocations: 318.7 kB / 404.2 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.3389, allocations: 1.156 kB / 404.2 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.3389, allocations: 14.73 kB / 404.2 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.3389, allocations: 6.469 kB / 404.2 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007376/0.3397, allocations: 311 kB / 404.5 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001904/0.3416, allocations: 1.131 MB / 405.7 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006207/0.3422, allocations: 278.1 kB / 405.9 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003321/0.3425, allocations: 157 kB / 406.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.943e-05/0.3425, allocations: 4.062 kB / 406.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.3426, allocations: 34.02 kB / 406.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 2.073e-06/0.3426, allocations: 0 / 406.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=42): time 0.009635/0.3522, allocations: 2.268 MB / 408.4 MB, free: 2.145 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/0.3523, allocations: 85.89 kB / 408.5 MB, free: 2.047 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004756/0.3527, allocations: 291 kB / 408.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.71e-05/0.3528, allocations: 38.89 kB / 408.8 MB, free: 1.836 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.879e-05/0.3529, allocations: 172.2 kB / 409 MB, free: 1.688 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.353, allocations: 148.6 kB / 409.1 MB, free: 1.57 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001842/0.3532, allocations: 87.56 kB / 409.2 MB, free: 1.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.022e-05/0.3533, allocations: 343.6 kB / 409.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004073/0.3537, allocations: 163.6 kB / 409.7 MB, free: 1.133 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004096/0.3541, allocations: 229.8 kB / 409.9 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007832/0.3549, allocations: 408.9 kB / 410.3 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.3549, allocations: 0 / 410.3 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001057/0.3559, allocations: 490.9 kB / 410.8 MB, free: 492 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.3559, allocations: 6 kB / 410.8 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.356, allocations: 1.156 kB / 410.8 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.509e-05/0.356, allocations: 9.297 kB / 410.8 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006167/0.3566, allocations: 116.1 kB / 410.9 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.3566, allocations: 7.594 kB / 410.9 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004571/0.3571, allocations: 30.58 kB / 411 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.934e-05/0.3571, allocations: 15.86 kB / 411 MB, free: 436 kB / 318.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.0001977/0.3573, allocations: 155.3 kB / 411.1 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.3574, allocations: 34.7 kB / 411.2 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001919/0.3593, allocations: 0.6441 MB / 411.8 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.3593, allocations: 12.58 kB / 411.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.3593, allocations: 1.594 kB / 411.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.3594, allocations: 0 / 411.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003397/0.3628, allocations: 1.242 MB / 413.1 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/0.3628, allocations: 0 / 413.1 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004439/0.3632, allocations: 92.47 kB / 413.2 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001643/0.3648, allocations: 271 kB / 413.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.686e-05/0.3649, allocations: 15.22 kB / 413.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004458/0.3693, allocations: 2.34 MB / 415.8 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.3694, allocations: 5.25 kB / 415.8 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002696/0.372, allocations: 1.004 MB / 416.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002864/0.3723, allocations: 74.97 kB / 416.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.972e-05/0.3724, allocations: 13.36 kB / 416.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004933/0.3729, allocations: 26.64 kB / 416.9 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.3731, allocations: 41.42 kB / 416.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.699e-05/0.3731, allocations: 12.66 kB / 417 MB, free: 12.12 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003058/0.3734, allocations: 210.2 kB / 417.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3734, allocations: 0 / 417.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007423/0.3741, allocations: 118.2 kB / 417.3 MB, free: 11.96 MB / 334.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.00331/0.3775, allocations: 1.585 MB / 418.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001132/0.3786, allocations: 410.5 kB / 419.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.3786, allocations: 0 / 419.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007598/0.3793, allocations: 371.2 kB / 419.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005889/0.3799, allocations: 33.36 kB / 419.7 MB, free: 10.33 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006501/0.3864, allocations: 3.859 MB / 423.5 MB, free: 7.449 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004562/0.3869, allocations: 0.7893 MB / 424.3 MB, free: 6.629 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002296/0.3871, allocations: 46.88 kB / 424.4 MB, free: 6.586 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002353/0.3874, allocations: 115.4 kB / 424.5 MB, free: 6.473 MB / 334.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3874, allocations: 4 kB / 424.5 MB, free: 6.469 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04418/0.4315, allocations: 10.06 MB / 434.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.34, allocations: 3.938 kB / 434.5 MB, free: 12.34 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.980693965000683]