Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001085/0.001085, allocations: 103.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001198/0.001198, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 56.44 kB / 307 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07979/0.081, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.163/0.244, allocations: 28.6 MB / 386.2 MB, free: 5.301 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01284/0.2569, allocations: 7.197 MB / 393.4 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005398/0.2623, allocations: 264.1 kB / 393.6 MB, free: 464 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02768/0.2901, allocations: 13.1 MB / 406.7 MB, free: 7.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009982/0.3001, allocations: 2.533 MB / 409.3 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006405/0.3065, allocations: 2.029 MB / 411.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02021/0.3267, allocations: 18.14 MB / 429.4 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06995/0.3967, allocations: 44.64 MB / 474.1 MB, free: 7.234 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01484/0.4116, allocations: 9.908 MB / 484 MB, free: 13.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01513/0.4268, allocations: 11.07 MB / 495.1 MB, free: 2.215 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006736/0.4335, allocations: 2.918 MB / 498 MB, free: 15.29 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01016/0.4437, allocations: 3.207 MB / 0.4894 GB, free: 12.09 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008205/0.4519, allocations: 5.476 MB / 0.4948 GB, free: 6.602 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01596/0.4679, allocations: 10.81 MB / 0.5053 GB, free: 11.75 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3603/0.8283, allocations: 38.8 MB / 0.5432 GB, free: 83.27 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.8283, allocations: 0 / 0.5432 GB, free: 83.27 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.8283, allocations: 0 / 0.5432 GB, free: 83.27 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008755/0.8292, allocations: 0.875 kB / 0.5432 GB, free: 83.27 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4885 * Number of variables: 4885 Notification: Performance of Generate backend data structure: time 0.06542/0.8946, allocations: 21.93 MB / 0.5647 GB, free: 74.02 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.8947, allocations: 11.73 kB / 0.5647 GB, free: 74.01 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008803/0.9035, allocations: 2.96 MB / 0.5676 GB, free: 72.19 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04411/0.9476, allocations: 8.363 MB / 0.5757 GB, free: 68.4 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02127/0.969, allocations: 11.27 MB / 0.5867 GB, free: 59.06 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009058/0.9699, allocations: 1.342 MB / 0.588 GB, free: 57.73 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007259/0.9772, allocations: 1.755 MB / 0.5897 GB, free: 55.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06262/1.04, allocations: 28.73 MB / 0.6178 GB, free: 27.21 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00057/1.04, allocations: 23.55 kB / 0.6178 GB, free: 27.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005669/1.046, allocations: 0.7326 MB / 0.6185 GB, free: 26.48 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005269/1.047, allocations: 0.8454 MB / 0.6194 GB, free: 25.63 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0429/1.09, allocations: 24.78 MB / 0.6436 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3324/1.422, allocations: 88.41 MB / 0.7299 GB, free: 153.4 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02163/1.444, allocations: 35.12 MB / 0.7642 GB, free: 125.9 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006799/1.451, allocations: 5.291 MB / 0.7694 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004198/1.451, allocations: 290.8 kB / 0.7696 GB, free: 125.7 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.883e-05/1.451, allocations: 91.39 kB / 0.7697 GB, free: 125.6 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=577): time 8.125e-06/1.451, allocations: 3.984 kB / 0.7697 GB, free: 125.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=577): time 0.02998/1.481, allocations: 14.74 MB / 0.7841 GB, free: 124.8 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.707e-05/1.481, allocations: 138 kB / 0.7843 GB, free: 124.7 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008192/1.489, allocations: 6.417 MB / 0.7905 GB, free: 124.3 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.000674/1.49, allocations: 116 kB / 0.7906 GB, free: 124.3 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003148/1.493, allocations: 7.618 MB / 0.7981 GB, free: 120 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001524/1.495, allocations: 2.01 MB / 0.8 GB, free: 118.8 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002375/1.497, allocations: 2.087 MB / 0.8021 GB, free: 118.6 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.431e-05/1.497, allocations: 305.1 kB / 0.8024 GB, free: 118.3 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005422/1.503, allocations: 4.735 MB / 0.807 GB, free: 117.7 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00674/1.509, allocations: 9.472 MB / 0.8162 GB, free: 109.6 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01314/1.522, allocations: 15.3 MB / 0.8312 GB, free: 94.12 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00014/1.523, allocations: 44 kB / 0.8312 GB, free: 94.08 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.02181/1.544, allocations: 15.38 MB / 0.8462 GB, free: 78.62 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.338e-05/1.545, allocations: 74.3 kB / 0.8463 GB, free: 78.55 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001519/1.545, allocations: 160.6 kB / 0.8465 GB, free: 78.39 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004809/1.55, allocations: 1.668 MB / 0.8481 GB, free: 76.71 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007077/1.557, allocations: 2.351 MB / 0.8504 GB, free: 74.36 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/1.569, allocations: 11.61 MB / 0.8617 GB, free: 62.63 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007307/1.576, allocations: 1.351 MB / 0.863 GB, free: 61.27 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00131/1.578, allocations: 0.5273 MB / 0.8636 GB, free: 60.74 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1243): * Single equations (assignments): 1240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(6,80,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008893/1.586, allocations: 7.141 MB / 0.8705 GB, free: 53.58 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001072/1.587, allocations: 0.6133 MB / 0.8711 GB, free: 52.96 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01266/1.6, allocations: 10.11 MB / 0.881 GB, free: 42.73 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009537/1.61, allocations: 7.769 MB / 0.8886 GB, free: 34.88 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.159e-05/1.61, allocations: 12 kB / 0.8886 GB, free: 34.86 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.127e-05/1.61, allocations: 31.27 kB / 0.8886 GB, free: 34.84 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03757/1.647, allocations: 26.23 MB / 0.9143 GB, free: 8.117 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.163e-05/1.647, allocations: 11.75 kB / 0.9143 GB, free: 8.109 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003599/1.651, allocations: 1.002 MB / 0.9152 GB, free: 7.105 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004631/1.656, allocations: 1.473 MB / 0.9167 GB, free: 5.625 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004138/1.656, allocations: 132 kB / 0.9168 GB, free: 5.496 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2088/1.865, allocations: 11.14 MB / 0.9277 GB, free: 162.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.058e-05/1.865, allocations: 13.28 kB / 0.9277 GB, free: 162.7 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01684/1.882, allocations: 14.1 MB / 0.9415 GB, free: 159.3 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002567/1.884, allocations: 1.44 MB / 0.9429 GB, free: 158.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007476/1.885, allocations: 109.5 kB / 0.943 GB, free: 158.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002674/1.888, allocations: 321.2 kB / 0.9433 GB, free: 158.4 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007214/1.889, allocations: 402.1 kB / 0.9437 GB, free: 158.3 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002964/1.889, allocations: 166.1 kB / 0.9438 GB, free: 158.2 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005026/1.894, allocations: 4.309 MB / 0.948 GB, free: 156.7 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.3e-07/1.894, allocations: 0 / 0.948 GB, free: 156.7 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.009655/1.904, allocations: 4.039 MB / 0.952 GB, free: 155.4 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 1 (source.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (528): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(6,80,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01647/1.92, allocations: 14.88 MB / 0.9665 GB, free: 148.5 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.04937/1.97, allocations: 26.54 MB / 0.9924 GB, free: 127.5 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.288e-05/1.97, allocations: 9.625 kB / 0.9924 GB, free: 127.5 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005615/1.975, allocations: 4.646 MB / 0.997 GB, free: 123.5 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006782/1.982, allocations: 1.566 MB / 0.9985 GB, free: 122.2 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1115/2.094, allocations: 113.4 MB / 1.109 GB, free: 3.629 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1691/2.263, allocations: 11.25 MB / 1.12 GB, free: 182.2 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.01042/2.273, allocations: 3.773 MB / 1.124 GB, free: 181.9 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007708/2.281, allocations: 5.917 MB / 1.13 GB, free: 179.3 MB / 0.5138 GB Notification: Performance of SimCode: time 1.684e-06/2.281, allocations: 1.031 kB / 1.13 GB, free: 179.3 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3974/2.678, allocations: 208.2 MB / 1.333 GB, free: 150.8 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/15.25, allocations: 15 kB / 1.333 GB, free: 150.8 MB / 0.5138 GB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches