Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.0008199/0.0008199, allocations: 76.06 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.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.0007972/0.0007972, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8652/0.8652, allocations: 173.4 MB / 200.5 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 318.4 MB, free: 6.227 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.447e-05/1.662e-05, allocations: 2.281 kB / 318.4 MB, free: 6.223 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.004984/0.005, allocations: 3.942 MB / 322.4 MB, free: 2.258 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00248/0.007481, allocations: 1.52 MB / 323.9 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003514/0.007832, allocations: 11.94 kB / 323.9 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003202/0.008152, allocations: 126.9 kB / 324 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007735/0.008926, allocations: 381.2 kB / 324.4 MB, free: 220 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003729/0.009299, allocations: 231.7 kB / 324.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007743/0.01007, allocations: 1.005 MB / 325.6 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002388/0.01031, allocations: 158.1 kB / 325.8 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005796/0.01089, allocations: 0.5457 MB / 326.3 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000336/0.01123, allocations: 335 kB / 326.7 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.752e-05/0.01131, allocations: 96 kB / 326.8 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000281/0.0116, allocations: 211.8 kB / 327 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001085/0.0117, allocations: 199.3 kB / 327.2 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001878/0.01189, allocations: 287.3 kB / 327.4 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008812/0.01277, allocations: 1.219 MB / 328.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.01278, allocations: 8 kB / 328.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.01278, allocations: 0 / 328.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.516e-05/0.01279, allocations: 0 / 328.7 MB, free: 11.94 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001615/0.01441, allocations: 1.023 MB / 329.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.01445, allocations: 12.03 kB / 329.7 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.52e-05/0.01454, allocations: 94.7 kB / 329.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.01466, allocations: 84.42 kB / 329.9 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005604/0.01523, allocations: 468.7 kB / 330.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.14e-05/0.01532, allocations: 131 kB / 330.5 MB, free: 10.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.01545, allocations: 76.61 kB / 330.5 MB, free: 9.984 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007708/0.01622, allocations: 0.7066 MB / 331.2 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.01624, allocations: 0 / 331.2 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.766e-05/0.01628, allocations: 20 kB / 331.3 MB, free: 9.215 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.01629, allocations: 16 kB / 331.3 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000719/0.01701, allocations: 0.5243 MB / 331.8 MB, free: 8.676 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002278/0.01928, allocations: 2.046 MB / 333.9 MB, free: 6.531 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006544/0.01994, allocations: 461.2 kB / 334.3 MB, free: 6.059 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003372/0.02028, allocations: 242.1 kB / 334.5 MB, free: 5.816 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.0203, allocations: 8 kB / 334.5 MB, free: 5.809 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.02033, allocations: 46.48 kB / 334.6 MB, free: 5.754 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.854e-06/0.02033, allocations: 0 / 334.6 MB, free: 5.754 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.006644/0.02698, allocations: 3.314 MB / 337.9 MB, free: 2.395 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.536e-05/0.02702, allocations: 89.59 kB / 338 MB, free: 2.289 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00052/0.02754, allocations: 0.5448 MB / 338.5 MB, free: 1.734 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.01e-05/0.02758, allocations: 33.7 kB / 338.6 MB, free: 1.695 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/0.02775, allocations: 328.9 kB / 338.9 MB, free: 1.367 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.02787, allocations: 214.1 kB / 339.1 MB, free: 1.156 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.028, allocations: 118.1 kB / 339.2 MB, free: 1.035 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.02812, allocations: 366.8 kB / 339.6 MB, free: 0.668 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003556/0.02847, allocations: 245.2 kB / 339.8 MB, free: 440 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003802/0.02885, allocations: 344.5 kB / 340.1 MB, free: 60 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007539/0.02961, allocations: 0.611 MB / 340.8 MB, free: 15.42 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.02961, allocations: 0 / 340.8 MB, free: 15.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0009764/0.03058, allocations: 0.7399 MB / 341.5 MB, free: 14.67 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.0306, allocations: 11.94 kB / 341.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.03061, allocations: 0 / 341.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001267/0.03074, allocations: 40.77 kB / 341.6 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004069/0.03114, allocations: 163.8 kB / 341.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007829/0.03193, allocations: 1.328 MB / 343 MB, free: 13.01 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002748/0.0322, allocations: 39.98 kB / 343.1 MB, free: 12.97 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.173e-05/0.03223, allocations: 23.98 kB / 343.1 MB, free: 12.95 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000209/0.03244, allocations: 213.6 kB / 343.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.237e-05/0.03253, allocations: 63.62 kB / 343.4 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001108/0.03363, allocations: 0.828 MB / 344.2 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.03364, allocations: 8 kB / 344.2 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.03364, allocations: 3.938 kB / 344.2 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.535e-06/0.03365, allocations: 7.922 kB / 344.2 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002184/0.03583, allocations: 1.668 MB / 345.9 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.03584, allocations: 4 kB / 345.9 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/0.03611, allocations: 103.9 kB / 346 MB, free: 9.973 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001129/0.03724, allocations: 487.6 kB / 346.5 MB, free: 9.496 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.506e-05/0.03727, allocations: 12 kB / 346.5 MB, free: 9.484 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002982/0.04026, allocations: 2.981 MB / 349.5 MB, free: 6.395 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.04026, allocations: 3.984 kB / 349.5 MB, free: 6.391 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001756/0.04201, allocations: 1.362 MB / 350.8 MB, free: 5.008 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001906/0.04221, allocations: 135.5 kB / 351 MB, free: 4.875 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.802e-05/0.04225, allocations: 12 kB / 351 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002875/0.04254, allocations: 47.91 kB / 351 MB, free: 4.816 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.592e-05/0.04264, allocations: 56.48 kB / 351.1 MB, free: 4.762 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.526e-05/0.04266, allocations: 16 kB / 351.1 MB, free: 4.746 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000304/0.04297, allocations: 390.9 kB / 351.5 MB, free: 4.367 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04297, allocations: 0 / 351.5 MB, free: 4.367 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004592/0.04343, allocations: 188.1 kB / 351.7 MB, free: 4.184 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002072/0.0455, allocations: 1.968 MB / 353.6 MB, free: 2.184 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009183/0.04642, allocations: 0.6992 MB / 354.3 MB, free: 1.469 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.04642, allocations: 4 kB / 354.3 MB, free: 1.465 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005378/0.04696, allocations: 0.4987 MB / 354.8 MB, free: 0.957 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004513/0.04741, allocations: 105 kB / 354.9 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006082/0.05349, allocations: 5.84 MB / 360.8 MB, free: 10.86 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002076/0.0537, allocations: 303.2 kB / 361.1 MB, free: 10.54 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001972/0.05389, allocations: 72.81 kB / 361.1 MB, free: 10.46 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002631/0.05416, allocations: 244.4 kB / 361.4 MB, free: 10.23 MB / 330.7 MB Notification: Performance of SimCode: time 6.12e-07/0.05416, allocations: 0 / 361.4 MB, free: 10.23 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02852/0.08268, allocations: 16.51 MB / 377.9 MB, free: 9.98 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.466/8.548, allocations: 8.047 kB / 377.9 MB, free: 9.973 MB / 346.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable transformer.core.Hstat in file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv. Warning: Get data of variable transformer.core.Hstat from file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.46322869695723]