Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.001773/0.001773, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001991/0.001991, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 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 1.383/1.383, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] 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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 51.92 kB / 365.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09792/0.09937, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005177/0.1045, allocations: 3.419 MB / 421.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002595/0.1071, allocations: 1.461 MB / 422.7 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002302/0.1074, allocations: 4 kB / 422.7 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003015/0.1104, allocations: 2.655 MB / 425.3 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000473/0.1109, allocations: 170.8 kB / 425.5 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000736/0.1116, allocations: 314.4 kB / 425.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001869/0.1135, allocations: 1.802 MB / 427.6 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001926/0.1137, allocations: 91.28 kB / 427.7 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003999/0.1141, allocations: 313 kB / 428 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004107/0.1145, allocations: 354.8 kB / 428.3 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.596e-05/0.1146, allocations: 44 kB / 428.4 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000188/0.1147, allocations: 83.98 kB / 428.5 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006721/0.1154, allocations: 0.853 MB / 429.3 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007579/0.1162, allocations: 0.9307 MB / 430.2 MB, free: 120 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002503/0.1187, allocations: 2.63 MB / 432.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1187, allocations: 4 kB / 432.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1187, allocations: 0 / 432.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.926e-05/0.1187, allocations: 3.938 kB / 432.9 MB, free: 13.46 MB / 366.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.004193/0.1229, allocations: 2.899 MB / 435.8 MB, free: 10.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.1229, allocations: 15.89 kB / 435.8 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.769e-05/0.123, allocations: 74.7 kB / 435.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000362/0.1234, allocations: 295 kB / 436.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002828/0.1262, allocations: 1.85 MB / 438 MB, free: 8.211 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.9e-05/0.1263, allocations: 59.02 kB / 438.1 MB, free: 8.145 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000178/0.1265, allocations: 51.92 kB / 438.1 MB, free: 8.094 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007631/0.1273, allocations: 391 kB / 438.5 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.1273, allocations: 0 / 438.5 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.578e-05/0.1273, allocations: 16 kB / 438.5 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.1273, allocations: 8 kB / 438.5 MB, free: 7.672 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007188/0.128, allocations: 339.7 kB / 438.9 MB, free: 7.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004454/0.1325, allocations: 2.895 MB / 441.7 MB, free: 4.344 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006398/0.1331, allocations: 311.5 kB / 442.1 MB, free: 4.023 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003165/0.1335, allocations: 156.3 kB / 442.2 MB, free: 3.867 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.1335, allocations: 4 kB / 442.2 MB, free: 3.863 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.109e-05/0.1335, allocations: 42.36 kB / 442.2 MB, free: 3.812 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.653e-06/0.1335, allocations: 0 / 442.2 MB, free: 3.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.004857/0.1384, allocations: 2.452 MB / 444.7 MB, free: 1.297 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.351e-05/0.1384, allocations: 89.58 kB / 444.8 MB, free: 1.191 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2092/0.3477, allocations: 5.425 MB / 450.2 MB, free: 27.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.619e-05/0.3477, allocations: 34.61 kB / 450.2 MB, free: 27.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000872/0.3486, allocations: 1.215 MB / 451.5 MB, free: 27.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.3487, allocations: 170.4 kB / 451.6 MB, free: 27.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/0.3489, allocations: 91.12 kB / 451.7 MB, free: 27.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.054e-05/0.3489, allocations: 324.8 kB / 452 MB, free: 27.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003873/0.3493, allocations: 139.3 kB / 452.2 MB, free: 27.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004292/0.3497, allocations: 222 kB / 452.4 MB, free: 27.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007175/0.3505, allocations: 388.5 kB / 452.8 MB, free: 26.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3505, allocations: 1.125 kB / 452.8 MB, free: 26.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001415/0.3519, allocations: 0.6939 MB / 453.5 MB, free: 26.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.3519, allocations: 9.375 kB / 453.5 MB, free: 26.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.3519, allocations: 2.062 kB / 453.5 MB, free: 26.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.344e-05/0.3519, allocations: 4.406 kB / 453.5 MB, free: 26.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005035/0.3524, allocations: 124.3 kB / 453.6 MB, free: 26.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/0.3525, allocations: 9.438 kB / 453.6 MB, free: 26.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005023/0.353, allocations: 17.45 kB / 453.6 MB, free: 26.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.353, allocations: 17.75 kB / 453.6 MB, free: 26.69 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.001091/0.3541, allocations: 0.9202 MB / 454.6 MB, free: 26.35 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003388/0.3544, allocations: 284 kB / 454.8 MB, free: 26.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001451/0.3559, allocations: 0.7853 MB / 455.6 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.3559, allocations: 5.062 kB / 455.6 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3559, allocations: 10.09 kB / 455.6 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.3559, allocations: 2.672 kB / 455.6 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001877/0.3578, allocations: 1.47 MB / 457.1 MB, free: 25.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.3578, allocations: 0 / 457.1 MB, free: 25.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004409/0.3582, allocations: 96.94 kB / 457.2 MB, free: 25.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003536/0.3586, allocations: 94.08 kB / 457.3 MB, free: 25.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.132e-05/0.3586, allocations: 15.64 kB / 457.3 MB, free: 25.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004491/0.359, allocations: 0.6355 MB / 458 MB, free: 24.74 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.359, allocations: 2.906 kB / 458 MB, free: 24.74 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001776/0.3608, allocations: 1.092 MB / 459 MB, free: 24.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/0.3618, allocations: 0.4933 MB / 459.5 MB, free: 23.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001776/0.362, allocations: 18.12 kB / 459.6 MB, free: 23.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004655/0.3625, allocations: 19.56 kB / 459.6 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.865e-05/0.3626, allocations: 25.45 kB / 459.6 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.024e-05/0.3626, allocations: 19.8 kB / 459.6 MB, free: 23.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004889/0.3675, allocations: 3.973 MB / 463.6 MB, free: 22.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3675, allocations: 1.781 kB / 463.6 MB, free: 22.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008925/0.3684, allocations: 203.2 kB / 463.8 MB, free: 22.5 MB / 366.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.003168/0.3715, allocations: 1.94 MB / 465.7 MB, free: 21.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008307/0.3724, allocations: 364.4 kB / 466.1 MB, free: 21.24 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3724, allocations: 3.938 kB / 466.1 MB, free: 21.24 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004397/0.3728, allocations: 200.5 kB / 466.3 MB, free: 21.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.3738, allocations: 192.8 kB / 466.5 MB, free: 21.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03738/0.4112, allocations: 19.36 MB / 485.8 MB, free: 7.637 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001488/0.4127, allocations: 1.825 MB / 487.7 MB, free: 5.777 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005416/0.4133, allocations: 269.8 kB / 487.9 MB, free: 5.512 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009577/0.4142, allocations: 0.9328 MB / 488.9 MB, free: 4.582 MB / 366.1 MB Notification: Performance of SimCode: time 1.312e-06/0.4142, allocations: 0 / 488.9 MB, free: 4.582 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08345/0.4977, allocations: 38.79 MB / 0.5153 GB, free: 14.06 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.54/18.04, allocations: 11.42 kB / 0.5153 GB, free: 14.05 MB / 414.1 MB " [Timeout remaining time 642] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --stepSize=4e-06 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 20.99499227711931]