Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.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.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_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.001808/0.001808, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001961/0.001961, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2898, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.009718/0.2996, allocations: 7.786 MB / 416.5 MB, free: 9.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005456/0.3051, allocations: 2.714 MB / 419.3 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001744/0.3069, allocations: 67.69 kB / 419.3 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001909/0.3089, allocations: 0.5859 MB / 419.9 MB, free: 6.328 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003351/0.3122, allocations: 0.7497 MB / 420.7 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001653/0.3139, allocations: 419.4 kB / 421.1 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004733/0.3187, allocations: 3.284 MB / 424.4 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005444/0.3242, allocations: 3.592 MB / 427.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003561/0.3277, allocations: 1.674 MB / 429.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003266/0.331, allocations: 2.032 MB / 431.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001196/0.3322, allocations: 464 kB / 432.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001962/0.3342, allocations: 0.6481 MB / 432.8 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001864/0.3361, allocations: 1.247 MB / 434 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003519/0.3396, allocations: 1.972 MB / 436 MB, free: 6.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00716/0.3468, allocations: 6.119 MB / 442.1 MB, free: 44 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3468, allocations: 0 / 442.1 MB, free: 44 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3468, allocations: 0 / 442.1 MB, free: 44 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001303/0.347, allocations: 3.938 kB / 442.1 MB, free: 40 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 772 * Number of variables: 772 Notification: Performance of Generate backend data structure: time 0.008656/0.3556, allocations: 3.892 MB / 446 MB, free: 12.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.996e-05/0.3557, allocations: 16.03 kB / 446 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006203/0.3563, allocations: 433.8 kB / 446.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001434/0.3578, allocations: 442.5 kB / 446.9 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003911/0.3617, allocations: 2.187 MB / 449 MB, free: 8.949 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001667/0.3619, allocations: 229.8 kB / 449.3 MB, free: 8.723 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000414/0.3623, allocations: 284 kB / 449.5 MB, free: 8.445 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006816/0.3691, allocations: 4.191 MB / 453.7 MB, free: 4.203 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.355e-05/0.3692, allocations: 3.984 kB / 453.7 MB, free: 4.199 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002767/0.3695, allocations: 119.9 kB / 453.9 MB, free: 4.082 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001609/0.3697, allocations: 137.9 kB / 454 MB, free: 3.945 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005463/0.3751, allocations: 3.493 MB / 457.5 MB, free: 452 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0175/0.3926, allocations: 10.79 MB / 468.3 MB, free: 5.453 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002758/0.3954, allocations: 2.642 MB / 470.9 MB, free: 2.602 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002355/0.3978, allocations: 1.493 MB / 472.4 MB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002469/0.3981, allocations: 134 kB / 472.5 MB, free: 0.9531 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.869e-05/0.3981, allocations: 47.56 kB / 472.6 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.827e-06/0.3981, allocations: 0 / 472.6 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of matching and sorting (n=133): time 0.009295/0.4074, allocations: 5.212 MB / 477.8 MB, free: 11.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.914e-05/0.4075, allocations: 94.42 kB / 477.9 MB, free: 11.53 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002874/0.4104, allocations: 1.922 MB / 479.8 MB, free: 9.602 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001199/0.4106, allocations: 49.7 kB / 479.9 MB, free: 9.547 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009868/0.4116, allocations: 1.349 MB / 481.2 MB, free: 8.184 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003794/0.4119, allocations: 487.8 kB / 481.7 MB, free: 7.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004217/0.4124, allocations: 267.5 kB / 482 MB, free: 7.434 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.4125, allocations: 313.1 kB / 482.3 MB, free: 7.125 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/0.4137, allocations: 0.8198 MB / 483.1 MB, free: 6.305 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/0.4152, allocations: 1.178 MB / 484.3 MB, free: 4.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002764/0.4179, allocations: 2.082 MB / 486.3 MB, free: 2.758 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/0.418, allocations: 11.94 kB / 486.4 MB, free: 2.746 MB / 398.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004685/0.4226, allocations: 2.531 MB / 488.9 MB, free: 208 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.978e-05/0.4227, allocations: 8 kB / 488.9 MB, free: 200 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/0.4227, allocations: 12 kB / 488.9 MB, free: 188 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001796/0.4245, allocations: 483.1 kB / 489.4 MB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.4259, allocations: 331.5 kB / 489.7 MB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005339/0.4312, allocations: 4.392 MB / 494.1 MB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/0.4327, allocations: 79.92 kB / 494.2 MB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/0.4329, allocations: 67.97 kB / 494.2 MB, free: 10.71 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (158): * Single equations (assignments): 153 * Array equations: 4 * 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 {(2,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001859/0.4347, allocations: 1.059 MB / 495.3 MB, free: 9.645 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000473/0.4352, allocations: 202.7 kB / 495.5 MB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003356/0.4386, allocations: 2.145 MB / 497.6 MB, free: 7.281 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.264e-05/0.4386, allocations: 16 kB / 497.7 MB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.4386, allocations: 4 kB / 497.7 MB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.4386, allocations: 7.969 kB / 497.7 MB, free: 7.254 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008134/0.4468, allocations: 5.178 MB / 0.4911 GB, free: 1.984 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.4468, allocations: 4.219 kB / 0.4911 GB, free: 1.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009591/0.4478, allocations: 235.6 kB / 0.4913 GB, free: 1.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001764/0.4496, allocations: 452.3 kB / 0.4917 GB, free: 1.305 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.65e-05/0.4497, allocations: 31.98 kB / 0.4917 GB, free: 1.273 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005014/0.4547, allocations: 4.307 MB / 0.496 GB, free: 12.83 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4547, allocations: 0 / 0.496 GB, free: 12.83 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004836/0.4595, allocations: 3.268 MB / 0.4991 GB, free: 9.516 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/0.4607, allocations: 463.7 kB / 0.4996 GB, free: 9.043 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002611/0.461, allocations: 32 kB / 0.4996 GB, free: 9.012 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.462, allocations: 103.9 kB / 0.4997 GB, free: 8.91 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002078/0.4622, allocations: 96.8 kB / 0.4998 GB, free: 8.816 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.789e-05/0.4623, allocations: 36 kB / 0.4998 GB, free: 8.781 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001829/0.4641, allocations: 1.346 MB / 0.5012 GB, free: 7.441 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4641, allocations: 0 / 0.5012 GB, free: 7.441 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001689/0.4658, allocations: 0.5507 MB / 0.5017 GB, free: 6.891 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (transformer.l2sigma.inductor[2].i,transformer.l2sigma.inductor[3].i) * 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 (104): * Single equations (assignments): 99 * Array equations: 4 * 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 {(2,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005243/0.4711, allocations: 3.935 MB / 0.5055 GB, free: 2.906 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0034/0.4745, allocations: 2.204 MB / 0.5077 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.4745, allocations: 3.938 kB / 0.5077 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001844/0.4764, allocations: 1.207 MB / 0.5089 GB, free: 15.46 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002426/0.4788, allocations: 0.5107 MB / 0.5094 GB, free: 14.96 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03022/0.509, allocations: 20.59 MB / 0.5295 GB, free: 9.809 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002005/0.5111, allocations: 2.431 MB / 0.5318 GB, free: 7.348 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001398/0.5125, allocations: 0.4954 MB / 0.5323 GB, free: 6.848 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001342/0.5139, allocations: 1.069 MB / 0.5334 GB, free: 5.777 MB / 462.1 MB Notification: Performance of SimCode: time 1.914e-06/0.5139, allocations: 0 / 0.5334 GB, free: 5.777 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2873/0.8011, allocations: 51.95 MB / 0.5841 GB, free: 90.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.81/13.61, allocations: 10.08 kB / 0.5841 GB, free: 90.11 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/Transformers/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches