Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.002024/0.002024, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002458/0.002458, allocations: 217 kB / 23.75 MB, free: 4.668 MB / 14.72 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 1.465/1.465, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] 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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 51.91 kB / 377.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2736, allocations: 53.36 MB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005317/0.2789, allocations: 3.481 MB / 434.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003113/0.282, allocations: 1.675 MB / 436.3 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003035/0.2823, allocations: 15.94 kB / 436.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003321/0.2856, allocations: 2.655 MB / 439 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007169/0.2864, allocations: 230.5 kB / 439.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008485/0.2872, allocations: 327.2 kB / 439.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002516/0.2897, allocations: 1.821 MB / 441.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003722/0.2901, allocations: 96.38 kB / 441.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008533/0.2909, allocations: 332.9 kB / 441.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005834/0.2915, allocations: 354.8 kB / 442.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.2916, allocations: 44 kB / 442.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003197/0.292, allocations: 95.97 kB / 442.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008538/0.2928, allocations: 0.8491 MB / 443.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00104/0.2938, allocations: 0.9384 MB / 444 MB, free: 9.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002891/0.2967, allocations: 2.653 MB / 446.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.2967, allocations: 4 kB / 446.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2967, allocations: 0 / 446.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.379e-05/0.2968, allocations: 0 / 446.7 MB, free: 7.254 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004615/0.3014, allocations: 2.84 MB / 449.5 MB, free: 4.363 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.3014, allocations: 19.91 kB / 449.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.954e-05/0.3015, allocations: 70.72 kB / 449.6 MB, free: 4.266 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005055/0.3021, allocations: 306.9 kB / 449.9 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002891/0.3049, allocations: 1.798 MB / 451.7 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001291/0.3051, allocations: 118.4 kB / 451.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001673/0.3052, allocations: 47.98 kB / 451.9 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007349/0.306, allocations: 391 kB / 452.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.306, allocations: 3.984 kB / 452.3 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.758e-05/0.306, allocations: 16 kB / 452.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.306, allocations: 8 kB / 452.3 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007184/0.3068, allocations: 327.8 kB / 452.6 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004463/0.3112, allocations: 2.873 MB / 455.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007117/0.3119, allocations: 307.1 kB / 455.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003183/0.3123, allocations: 153.6 kB / 455.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.095e-05/0.3123, allocations: 8 kB / 455.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/0.3123, allocations: 39.09 kB / 456 MB, free: 13.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 5.27e-06/0.3123, allocations: 3.984 kB / 456 MB, free: 13.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.005131/0.3175, allocations: 2.395 MB / 458.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.686e-05/0.3175, allocations: 89.52 kB / 458.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006957/0.3245, allocations: 5.452 MB / 463.9 MB, free: 5.711 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.376e-05/0.3246, allocations: 37.7 kB / 463.9 MB, free: 5.668 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001195/0.3258, allocations: 1.192 MB / 465.1 MB, free: 4.473 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001642/0.3259, allocations: 174.5 kB / 465.3 MB, free: 4.301 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001467/0.3261, allocations: 94.12 kB / 465.4 MB, free: 4.203 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.3262, allocations: 322 kB / 465.7 MB, free: 3.883 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003524/0.3266, allocations: 148.9 kB / 465.9 MB, free: 3.738 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003871/0.327, allocations: 213.1 kB / 466.1 MB, free: 3.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007235/0.3277, allocations: 388.2 kB / 466.4 MB, free: 3.094 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3277, allocations: 0 / 466.4 MB, free: 3.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001375/0.3291, allocations: 0.6972 MB / 467.1 MB, free: 2.391 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.3291, allocations: 8 kB / 467.1 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.3291, allocations: 0 / 467.1 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.45e-05/0.3291, allocations: 4.25 kB / 467.2 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005198/0.3296, allocations: 123.8 kB / 467.3 MB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.434e-05/0.3297, allocations: 7.984 kB / 467.3 MB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004397/0.3301, allocations: 19.98 kB / 467.3 MB, free: 2.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.437e-05/0.3301, allocations: 20 kB / 467.3 MB, free: 2.211 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (62): * Single equations (assignments): 62 * 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.001172/0.3313, allocations: 0.923 MB / 468.2 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003329/0.3316, allocations: 282.1 kB / 468.5 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001554/0.3332, allocations: 0.7866 MB / 469.3 MB, free: 204 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.3332, allocations: 15.92 kB / 469.3 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3332, allocations: 0 / 469.3 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3332, allocations: 0 / 469.3 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001821/0.335, allocations: 1.456 MB / 470.8 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.335, allocations: 0 / 470.8 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004462/0.3355, allocations: 99.88 kB / 470.9 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003589/0.3358, allocations: 96.72 kB / 471 MB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.361e-05/0.3359, allocations: 15.98 kB / 471 MB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006168/0.3365, allocations: 0.6305 MB / 471.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3365, allocations: 0 / 471.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00174/0.3382, allocations: 1.098 MB / 472.7 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008828/0.3391, allocations: 430 kB / 473.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001693/0.3393, allocations: 8 kB / 473.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004603/0.3397, allocations: 23.98 kB / 473.2 MB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.763e-05/0.3398, allocations: 28.38 kB / 473.2 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.892e-05/0.3399, allocations: 16 kB / 473.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005181/0.345, allocations: 3.986 MB / 477.2 MB, free: 8.223 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.345, allocations: 4 kB / 477.2 MB, free: 8.219 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009442/0.346, allocations: 211.9 kB / 477.4 MB, free: 8.012 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * 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 (41): * Single equations (assignments): 40 * 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003634/0.3496, allocations: 1.944 MB / 479.4 MB, free: 6.195 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008557/0.3505, allocations: 361.2 kB / 479.7 MB, free: 5.844 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3505, allocations: 4.188 kB / 479.7 MB, free: 5.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004652/0.3509, allocations: 202.4 kB / 479.9 MB, free: 5.645 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/0.3521, allocations: 183 kB / 480.1 MB, free: 5.465 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04031/0.3924, allocations: 19.42 MB / 499.5 MB, free: 1.867 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001733/0.3941, allocations: 1.821 MB / 0.4896 GB, free: 12 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006949/0.3948, allocations: 275.8 kB / 0.4898 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001236/0.396, allocations: 0.9366 MB / 0.4908 GB, free: 14.8 MB / 414.1 MB Notification: Performance of SimCode: time 1.753e-06/0.396, allocations: 0 / 0.4908 GB, free: 14.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09215/0.4882, allocations: 39.31 MB / 0.5291 GB, free: 7.664 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.98/18.47, allocations: 8 kB / 0.5291 GB, free: 7.656 MB / 446.1 MB " [Timeout remaining time 641] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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: 21.667086419998668]