Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.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 4.0.0+maint.om/package.mo", uses=false) 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.Electrical.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.00109/0.00109, allocations: 195 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001061, allocations: 51.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2545, allocations: 49.43 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.008793/0.2634, allocations: 7.778 MB / 408 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004833/0.2682, allocations: 2.648 MB / 410.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001193/0.2694, allocations: 67.69 kB / 410.7 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001653/0.2712, allocations: 0.5703 MB / 411.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002423/0.2736, allocations: 0.7653 MB / 412.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.2747, allocations: 415.4 kB / 412.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004054/0.2788, allocations: 3.276 MB / 415.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004273/0.2831, allocations: 3.585 MB / 419.3 MB, free: 5.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002923/0.286, allocations: 1.663 MB / 421 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002592/0.2886, allocations: 2.032 MB / 423 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000544/0.2892, allocations: 468 kB / 423.5 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001044/0.2902, allocations: 0.6636 MB / 424.2 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001033/0.2913, allocations: 1.247 MB / 425.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001885/0.2932, allocations: 1.968 MB / 427.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005267/0.2984, allocations: 6.115 MB / 433.5 MB, free: 7.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2985, allocations: 4 kB / 433.5 MB, free: 7.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2985, allocations: 0 / 433.5 MB, free: 7.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.57e-05/0.2986, allocations: 0 / 433.5 MB, free: 7.414 MB / 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.006736/0.3053, allocations: 3.884 MB / 437.4 MB, free: 3.461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.3053, allocations: 12.02 kB / 437.4 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005188/0.3059, allocations: 429.9 kB / 437.8 MB, free: 3.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000935/0.3068, allocations: 406.6 kB / 438.2 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00325/0.3101, allocations: 2.167 MB / 440.4 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/0.3102, allocations: 233.8 kB / 440.6 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003821/0.3106, allocations: 284 kB / 440.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006175/0.3168, allocations: 4.187 MB / 445.1 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.992e-05/0.3169, allocations: 0 / 445.1 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002492/0.3171, allocations: 120 kB / 445.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001555/0.3173, allocations: 137.9 kB / 445.3 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005387/0.3227, allocations: 3.494 MB / 448.8 MB, free: 7.895 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01592/0.3386, allocations: 10.8 MB / 459.6 MB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002675/0.3413, allocations: 2.65 MB / 462.3 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002288/0.3436, allocations: 1.497 MB / 463.8 MB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002457/0.3439, allocations: 126.1 kB / 463.9 MB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.3439, allocations: 43.56 kB / 463.9 MB, free: 8.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.627e-06/0.344, allocations: 0 / 463.9 MB, free: 8.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=133): time 0.008624/0.3526, allocations: 5.215 MB / 469.1 MB, free: 3.082 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.57e-05/0.3527, allocations: 98.41 kB / 469.2 MB, free: 2.969 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00277/0.3555, allocations: 1.902 MB / 471.1 MB, free: 1.062 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000103/0.3556, allocations: 53.7 kB / 471.2 MB, free: 1.004 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008503/0.3564, allocations: 1.353 MB / 472.5 MB, free: 15.63 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003241/0.3568, allocations: 475.9 kB / 473 MB, free: 15.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004067/0.3572, allocations: 271.5 kB / 473.3 MB, free: 14.89 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.493e-05/0.3573, allocations: 308.9 kB / 473.6 MB, free: 14.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001164/0.3584, allocations: 0.8159 MB / 474.4 MB, free: 13.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001404/0.3599, allocations: 1.186 MB / 475.6 MB, free: 12.44 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00262/0.3625, allocations: 2.079 MB / 477.7 MB, free: 10.22 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.3625, allocations: 0 / 477.7 MB, free: 10.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004088/0.3666, allocations: 2.543 MB / 480.2 MB, free: 7.668 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/0.3666, allocations: 8 kB / 480.2 MB, free: 7.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.407e-05/0.3667, allocations: 12 kB / 480.2 MB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00176/0.3684, allocations: 479.8 kB / 480.7 MB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.3697, allocations: 339.5 kB / 481 MB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005229/0.3749, allocations: 4.392 MB / 485.4 MB, free: 2.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001194/0.3761, allocations: 83.92 kB / 485.5 MB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/0.3763, allocations: 56 kB / 485.5 MB, free: 2.18 MB / 398.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.001673/0.378, allocations: 1.055 MB / 486.6 MB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005109/0.3785, allocations: 206.7 kB / 486.8 MB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003504/0.382, allocations: 2.137 MB / 488.9 MB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.283e-05/0.382, allocations: 19.98 kB / 489 MB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.382, allocations: 4 kB / 489 MB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.3821, allocations: 3.984 kB / 489 MB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008511/0.3906, allocations: 5.174 MB / 494.1 MB, free: 9.461 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/0.3906, allocations: 8.062 kB / 494.1 MB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009625/0.3916, allocations: 231.6 kB / 494.4 MB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001613/0.3932, allocations: 460.7 kB / 494.8 MB, free: 8.773 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/0.3933, allocations: 35.98 kB / 494.9 MB, free: 8.738 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004941/0.3983, allocations: 4.293 MB / 499.2 MB, free: 4.309 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.3983, allocations: 4.094 kB / 499.2 MB, free: 4.305 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004558/0.4029, allocations: 3.268 MB / 0.4906 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008159/0.4037, allocations: 463.8 kB / 0.4911 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003044/0.404, allocations: 31.98 kB / 0.4911 GB, free: 500 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.405, allocations: 95.97 kB / 0.4912 GB, free: 404 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002021/0.4052, allocations: 92.8 kB / 0.4913 GB, free: 312 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.579e-05/0.4053, allocations: 43.98 kB / 0.4913 GB, free: 268 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00184/0.4072, allocations: 1.33 MB / 0.4926 GB, free: 14.94 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4072, allocations: 0 / 0.4926 GB, free: 14.94 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00159/0.4088, allocations: 0.5624 MB / 0.4932 GB, free: 14.38 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.0052/0.414, allocations: 3.94 MB / 0.497 GB, free: 10.39 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003417/0.4174, allocations: 2.192 MB / 0.4992 GB, free: 8.188 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/0.4175, allocations: 3.938 kB / 0.4992 GB, free: 8.184 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001811/0.4193, allocations: 1.215 MB / 0.5004 GB, free: 6.953 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002064/0.4213, allocations: 0.5085 MB / 0.5009 GB, free: 6.449 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02867/0.45, allocations: 20.56 MB / 0.5209 GB, free: 1.316 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002146/0.4522, allocations: 2.435 MB / 0.5233 GB, free: 14.85 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001303/0.4535, allocations: 495.4 kB / 0.5238 GB, free: 14.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00129/0.4548, allocations: 1.066 MB / 0.5248 GB, free: 13.3 MB / 462.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4548, allocations: 0 / 0.5248 GB, free: 13.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2978/0.7526, allocations: 51.91 MB / 0.5755 GB, free: 103.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.97/13.72, allocations: 11.77 kB / 0.5755 GB, free: 103.7 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches