Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 104.5 kB / 17.58 MB, free: 5.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 191.9 kB / 18.51 MB, free: 4.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.35/1.35, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 48.16 kB / 280.8 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08497/0.08623, allocations: 46.62 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.006147/0.09243, allocations: 4.312 MB / 331.7 MB, free: 44 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003344/0.0958, allocations: 1.634 MB / 333.3 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005784/0.09641, allocations: 8 kB / 333.3 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005367/0.09699, allocations: 126.8 kB / 333.5 MB, free: 14.26 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001208/0.09821, allocations: 357.8 kB / 333.8 MB, free: 13.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006037/0.09883, allocations: 239.6 kB / 334 MB, free: 13.68 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001235/0.1001, allocations: 0.9668 MB / 335 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003846/0.1005, allocations: 241.4 kB / 335.2 MB, free: 12.47 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006022/0.1011, allocations: 370.7 kB / 335.6 MB, free: 12.11 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007945/0.1019, allocations: 418.3 kB / 336 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002701/0.1022, allocations: 99.94 kB / 336.1 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005413/0.1027, allocations: 219.9 kB / 336.3 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002208/0.103, allocations: 195.4 kB / 336.5 MB, free: 11.19 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005818/0.1035, allocations: 414.1 kB / 336.9 MB, free: 10.79 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001265/0.1048, allocations: 1.149 MB / 338.1 MB, free: 9.633 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.1048, allocations: 0 / 338.1 MB, free: 9.633 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1048, allocations: 0 / 338.1 MB, free: 9.633 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.843e-05/0.1049, allocations: 4 kB / 338.1 MB, free: 9.629 MB / 286.1 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.002713/0.1076, allocations: 1.099 MB / 339.2 MB, free: 8.477 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.1077, allocations: 11.89 kB / 339.2 MB, free: 8.465 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000136/0.1078, allocations: 98.7 kB / 339.3 MB, free: 8.359 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001811/0.108, allocations: 87.98 kB / 339.4 MB, free: 8.273 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007718/0.1088, allocations: 0.4952 MB / 339.9 MB, free: 7.742 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.62e-05/0.1089, allocations: 71.58 kB / 339.9 MB, free: 7.668 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002119/0.1091, allocations: 72.2 kB / 340 MB, free: 7.598 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.1102, allocations: 0.6058 MB / 340.6 MB, free: 6.973 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.1102, allocations: 0 / 340.6 MB, free: 6.973 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.714e-05/0.1103, allocations: 24 kB / 340.6 MB, free: 6.949 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.1103, allocations: 15.94 kB / 340.6 MB, free: 6.934 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.1114, allocations: 0.5282 MB / 341.2 MB, free: 6.406 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003435/0.1149, allocations: 2.318 MB / 343.5 MB, free: 3.977 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009819/0.1159, allocations: 477.1 kB / 344 MB, free: 3.492 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000534/0.1164, allocations: 262.1 kB / 344.2 MB, free: 3.23 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.261e-05/0.1165, allocations: 12 kB / 344.2 MB, free: 3.219 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.1165, allocations: 38.5 kB / 344.3 MB, free: 3.172 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 1.873e-06/0.1165, allocations: 0 / 344.3 MB, free: 3.172 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.01327/0.1298, allocations: 3.543 MB / 347.8 MB, free: 15.53 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.731e-05/0.1299, allocations: 89.67 kB / 347.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007444/0.1306, allocations: 0.5332 MB / 348.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.251e-05/0.1307, allocations: 37.7 kB / 348.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000215/0.1309, allocations: 312.3 kB / 348.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001889/0.1311, allocations: 216.8 kB / 349 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001941/0.1313, allocations: 102.3 kB / 349.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.1315, allocations: 374.7 kB / 349.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005833/0.1321, allocations: 249.2 kB / 349.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006504/0.1328, allocations: 356.3 kB / 350 MB, free: 13.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001229/0.134, allocations: 0.5981 MB / 350.6 MB, free: 12.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.134, allocations: 4 kB / 350.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001579/0.1356, allocations: 0.7451 MB / 351.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.1356, allocations: 4 kB / 351.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.1357, allocations: 4 kB / 351.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001811/0.1358, allocations: 32.83 kB / 351.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008168/0.1367, allocations: 167.8 kB / 351.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/0.1378, allocations: 1.432 MB / 353 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006116/0.1384, allocations: 43.91 kB / 353.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.014e-05/0.1384, allocations: 20 kB / 353.1 MB, free: 9.973 MB / 302.1 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.0002868/0.1387, allocations: 205.6 kB / 353.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001524/0.1389, allocations: 55.48 kB / 353.3 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001837/0.1407, allocations: 0.8452 MB / 354.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.1408, allocations: 11.94 kB / 354.2 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.1408, allocations: 0 / 354.2 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.1408, allocations: 3.984 kB / 354.2 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003851/0.1446, allocations: 1.851 MB / 356.1 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.1447, allocations: 0 / 356.1 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005339/0.1452, allocations: 115.9 kB / 356.2 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002357/0.1476, allocations: 468.4 kB / 356.6 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.088e-05/0.1477, allocations: 12 kB / 356.6 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005057/0.1527, allocations: 3.152 MB / 359.8 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.1527, allocations: 7.922 kB / 359.8 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002969/0.1557, allocations: 1.366 MB / 361.2 MB, free: 1.656 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003735/0.1561, allocations: 208.2 kB / 361.4 MB, free: 1.434 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001444/0.1563, allocations: 16 kB / 361.4 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006666/0.1569, allocations: 43.97 kB / 361.4 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/0.1571, allocations: 48.48 kB / 361.5 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.693e-05/0.1572, allocations: 16 kB / 361.5 MB, free: 1.312 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005583/0.1577, allocations: 394.8 kB / 361.9 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1577, allocations: 0 / 361.9 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000869/0.1586, allocations: 184 kB / 362 MB, free: 0.75 MB / 302.1 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.003683/0.1623, allocations: 1.954 MB / 364 MB, free: 14.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001917/0.1643, allocations: 0.752 MB / 364.8 MB, free: 14 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.1643, allocations: 3.938 kB / 364.8 MB, free: 14 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.1653, allocations: 0.5294 MB / 365.3 MB, free: 13.45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008229/0.1661, allocations: 85.88 kB / 365.4 MB, free: 13.37 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009702/0.1758, allocations: 6.058 MB / 371.4 MB, free: 7.16 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005336/0.1764, allocations: 0.9043 MB / 372.3 MB, free: 6.227 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003602/0.1768, allocations: 68.8 kB / 372.4 MB, free: 6.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003875/0.1772, allocations: 247.3 kB / 372.6 MB, free: 5.918 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1772, allocations: 0 / 372.6 MB, free: 5.918 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1733/0.3505, allocations: 15.54 MB / 388.2 MB, free: 52.91 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.73/16.08, allocations: 8.016 kB / 388.2 MB, free: 52.91 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches