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.001268/0.001268, allocations: 108.4 kB / 17.06 MB, free: 5.973 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.001233/0.001233, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.315/1.315, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 51.91 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2828, allocations: 49.44 MB / 400.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.008722/0.2916, allocations: 7.779 MB / 408 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005496/0.2971, allocations: 2.644 MB / 410.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001296/0.2985, allocations: 67.69 kB / 410.7 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001335/0.2999, allocations: 0.5742 MB / 411.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002076/0.302, allocations: 0.7575 MB / 412.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000878/0.3029, allocations: 419.4 kB / 412.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003107/0.306, allocations: 3.28 MB / 415.8 MB, free: 9.215 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003602/0.3096, allocations: 3.591 MB / 419.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002805/0.3124, allocations: 1.655 MB / 421 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002459/0.3149, allocations: 2.036 MB / 423 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005391/0.3154, allocations: 460 kB / 423.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001031/0.3165, allocations: 0.6714 MB / 424.2 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001053/0.3175, allocations: 1.239 MB / 425.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002072/0.3196, allocations: 1.976 MB / 427.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005887/0.3255, allocations: 6.116 MB / 433.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3256, allocations: 0 / 433.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3256, allocations: 0 / 433.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001437/0.3257, allocations: 0 / 433.5 MB, free: 7.391 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.00779/0.3335, allocations: 3.88 MB / 437.4 MB, free: 3.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.3336, allocations: 8.031 kB / 437.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005301/0.3341, allocations: 433.9 kB / 437.8 MB, free: 3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009586/0.3351, allocations: 406.6 kB / 438.2 MB, free: 2.602 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003795/0.3389, allocations: 2.179 MB / 440.4 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.339, allocations: 213.8 kB / 440.6 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00043/0.3395, allocations: 288 kB / 440.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006799/0.3463, allocations: 4.195 MB / 445.1 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.016e-05/0.3464, allocations: 0 / 445.1 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002767/0.3466, allocations: 120 kB / 445.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001697/0.3468, allocations: 141.8 kB / 445.3 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005378/0.3522, allocations: 3.486 MB / 448.8 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01685/0.3691, allocations: 10.8 MB / 459.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002672/0.3718, allocations: 2.65 MB / 462.3 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002337/0.3742, allocations: 1.493 MB / 463.8 MB, free: 8.527 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000234/0.3744, allocations: 126.1 kB / 463.9 MB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.159e-05/0.3745, allocations: 51.55 kB / 463.9 MB, free: 8.328 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.486e-06/0.3745, allocations: 0 / 463.9 MB, free: 8.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=133): time 0.009012/0.3835, allocations: 5.212 MB / 469.1 MB, free: 3.062 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.3836, allocations: 90.42 kB / 469.2 MB, free: 2.957 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002879/0.3865, allocations: 1.917 MB / 471.1 MB, free: 1.035 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.3866, allocations: 45.7 kB / 471.2 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009815/0.3876, allocations: 1.349 MB / 472.5 MB, free: 15.62 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003481/0.3879, allocations: 483.9 kB / 473 MB, free: 15.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004049/0.3883, allocations: 267.5 kB / 473.3 MB, free: 14.88 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.3884, allocations: 305.1 kB / 473.6 MB, free: 14.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/0.3896, allocations: 0.8159 MB / 474.4 MB, free: 13.76 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001374/0.391, allocations: 1.186 MB / 475.6 MB, free: 12.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002619/0.3936, allocations: 2.082 MB / 477.7 MB, free: 10.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/0.3936, allocations: 4 kB / 477.7 MB, free: 10.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.003964/0.3976, allocations: 2.543 MB / 480.2 MB, free: 7.645 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.3976, allocations: 8 kB / 480.2 MB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.3977, allocations: 12 kB / 480.2 MB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001743/0.3994, allocations: 479.8 kB / 480.7 MB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/0.4007, allocations: 331.5 kB / 481 MB, free: 6.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00498/0.4057, allocations: 4.396 MB / 485.4 MB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001399/0.4071, allocations: 79.92 kB / 485.5 MB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/0.4073, allocations: 60 kB / 485.5 MB, free: 2.16 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.001627/0.4089, allocations: 1.059 MB / 486.6 MB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004136/0.4093, allocations: 198.8 kB / 486.8 MB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003359/0.4127, allocations: 2.148 MB / 488.9 MB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.811e-05/0.4127, allocations: 19.98 kB / 489 MB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.4128, allocations: 4 kB / 489 MB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.4128, allocations: 7.984 kB / 489 MB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008524/0.4213, allocations: 5.17 MB / 494.1 MB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.4213, allocations: 0 / 494.1 MB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009731/0.4223, allocations: 235.9 kB / 494.4 MB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001698/0.424, allocations: 460.7 kB / 494.8 MB, free: 8.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-05/0.4241, allocations: 31.98 kB / 494.9 MB, free: 8.719 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005024/0.4292, allocations: 4.297 MB / 499.2 MB, free: 4.285 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4292, allocations: 0 / 499.2 MB, free: 4.285 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004752/0.4339, allocations: 3.268 MB / 0.4906 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/0.4351, allocations: 459.8 kB / 0.4911 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000252/0.4353, allocations: 35.98 kB / 0.4911 GB, free: 480 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009772/0.4363, allocations: 87.91 kB / 0.4912 GB, free: 392 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/0.4365, allocations: 100.9 kB / 0.4913 GB, free: 292 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-05/0.4366, allocations: 47.91 kB / 0.4913 GB, free: 244 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001813/0.4385, allocations: 1.334 MB / 0.4927 GB, free: 14.91 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4385, allocations: 0 / 0.4927 GB, free: 14.91 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001669/0.4401, allocations: 0.5507 MB / 0.4932 GB, free: 14.36 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.005156/0.4453, allocations: 3.957 MB / 0.4971 GB, free: 10.36 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003303/0.4486, allocations: 2.191 MB / 0.4992 GB, free: 8.156 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.4486, allocations: 4 kB / 0.4992 GB, free: 8.152 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001742/0.4504, allocations: 1.212 MB / 0.5004 GB, free: 6.926 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002183/0.4526, allocations: 0.5057 MB / 0.5009 GB, free: 6.422 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02932/0.4819, allocations: 20.56 MB / 0.5209 GB, free: 1.293 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002181/0.4841, allocations: 2.435 MB / 0.5233 GB, free: 14.83 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001436/0.4856, allocations: 499.3 kB / 0.5238 GB, free: 14.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001368/0.487, allocations: 1.062 MB / 0.5248 GB, free: 13.27 MB / 462.1 MB Notification: Performance of SimCode: time 1.102e-06/0.487, allocations: 8 kB / 0.5248 GB, free: 13.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3112/0.7982, allocations: 51.89 MB / 0.5755 GB, free: 103.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.51, allocations: 11.28 kB / 0.5755 GB, free: 103.5 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