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.00135/0.00135, allocations: 113 kB / 17.07 MB, free: 6.016 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.001338/0.001338, allocations: 189.4 kB / 18 MB, free: 5.098 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.39/1.39, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 55.86 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2598, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.009949/0.2699, allocations: 7.777 MB / 408 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005592/0.2755, allocations: 2.644 MB / 410.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001444/0.277, allocations: 75.69 kB / 410.7 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001534/0.2786, allocations: 0.5509 MB / 411.3 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00228/0.2809, allocations: 0.7457 MB / 412 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009605/0.2818, allocations: 407.5 kB / 412.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004147/0.286, allocations: 3.28 MB / 415.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004497/0.2905, allocations: 3.588 MB / 419.3 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003498/0.2941, allocations: 1.661 MB / 421 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003505/0.2976, allocations: 2.032 MB / 423 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000869/0.2985, allocations: 460 kB / 423.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001554/0.3, allocations: 0.6753 MB / 424.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001416/0.3015, allocations: 1.243 MB / 425.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003222/0.3047, allocations: 1.968 MB / 427.3 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007425/0.3121, allocations: 6.115 MB / 433.4 MB, free: 7.465 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.635e-06/0.3122, allocations: 4 kB / 433.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3122, allocations: 0 / 433.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000191/0.3124, allocations: 0 / 433.4 MB, free: 7.461 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.009259/0.3217, allocations: 3.888 MB / 437.3 MB, free: 3.504 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.3217, allocations: 8.031 kB / 437.3 MB, free: 3.496 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000717/0.3225, allocations: 425.9 kB / 437.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001096/0.3236, allocations: 414.5 kB / 438.2 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004062/0.3276, allocations: 2.171 MB / 440.3 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002137/0.3279, allocations: 221.8 kB / 440.6 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006956/0.3286, allocations: 280 kB / 440.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008577/0.3372, allocations: 4.191 MB / 445 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.219e-05/0.3373, allocations: 0 / 445 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003187/0.3376, allocations: 124 kB / 445.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001948/0.3378, allocations: 141.9 kB / 445.3 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006811/0.3446, allocations: 3.49 MB / 448.8 MB, free: 7.941 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02188/0.3665, allocations: 10.79 MB / 459.6 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003218/0.3698, allocations: 2.647 MB / 462.2 MB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002728/0.3726, allocations: 1.493 MB / 463.7 MB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002842/0.3729, allocations: 122.1 kB / 463.8 MB, free: 8.469 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.069e-05/0.3729, allocations: 63.48 kB / 463.9 MB, free: 8.398 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.988e-06/0.373, allocations: 0 / 463.9 MB, free: 8.398 MB / 382.1 MB Notification: Performance of matching and sorting (n=133): time 0.0101/0.3831, allocations: 5.212 MB / 469.1 MB, free: 3.133 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.192e-05/0.3832, allocations: 94.36 kB / 469.2 MB, free: 3.023 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003003/0.3862, allocations: 1.902 MB / 471.1 MB, free: 1.117 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001446/0.3864, allocations: 49.7 kB / 471.1 MB, free: 1.062 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001046/0.3874, allocations: 1.357 MB / 472.5 MB, free: 15.69 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004486/0.3879, allocations: 483.9 kB / 473 MB, free: 15.21 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004722/0.3884, allocations: 271.5 kB / 473.2 MB, free: 14.94 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.3885, allocations: 308.9 kB / 473.5 MB, free: 14.64 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/0.3898, allocations: 0.8197 MB / 474.4 MB, free: 13.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001657/0.3915, allocations: 1.182 MB / 475.5 MB, free: 12.49 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003192/0.3947, allocations: 2.082 MB / 477.6 MB, free: 10.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.778e-06/0.3947, allocations: 8 kB / 477.6 MB, free: 10.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004844/0.3996, allocations: 2.524 MB / 480.1 MB, free: 7.723 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.329e-05/0.3997, allocations: 16.03 kB / 480.2 MB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.047e-05/0.3997, allocations: 8 kB / 480.2 MB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001956/0.4016, allocations: 483.6 kB / 480.6 MB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/0.403, allocations: 331.5 kB / 481 MB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006071/0.4091, allocations: 4.392 MB / 485.4 MB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/0.4108, allocations: 87.98 kB / 485.4 MB, free: 2.289 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002276/0.411, allocations: 63.98 kB / 485.5 MB, free: 2.227 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.002239/0.4133, allocations: 1.055 MB / 486.6 MB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007374/0.414, allocations: 194.8 kB / 486.8 MB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004201/0.4182, allocations: 2.152 MB / 488.9 MB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.556e-05/0.4183, allocations: 16 kB / 488.9 MB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/0.4183, allocations: 4 kB / 488.9 MB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.659e-05/0.4183, allocations: 11.91 kB / 488.9 MB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01034/0.4287, allocations: 5.166 MB / 494.1 MB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.476e-05/0.4288, allocations: 4 kB / 494.1 MB, free: 9.504 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.4299, allocations: 227.7 kB / 494.3 MB, free: 9.281 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001928/0.4318, allocations: 464.9 kB / 494.8 MB, free: 8.824 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001903/0.432, allocations: 35.98 kB / 494.8 MB, free: 8.789 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005931/0.438, allocations: 4.299 MB / 499.1 MB, free: 4.352 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.438, allocations: 0 / 499.1 MB, free: 4.352 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00602/0.444, allocations: 3.264 MB / 0.4906 GB, free: 1.043 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001302/0.4454, allocations: 459.8 kB / 0.491 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004036/0.4458, allocations: 27.98 kB / 0.4911 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.447, allocations: 99.95 kB / 0.4912 GB, free: 460 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003015/0.4473, allocations: 100.7 kB / 0.4913 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/0.4474, allocations: 43.98 kB / 0.4913 GB, free: 316 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002343/0.4498, allocations: 1.334 MB / 0.4926 GB, free: 14.98 MB / 430.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4498, allocations: 0 / 0.4926 GB, free: 14.98 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002619/0.4524, allocations: 0.5507 MB / 0.4931 GB, free: 14.43 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.006892/0.4594, allocations: 3.955 MB / 0.497 GB, free: 10.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004339/0.4637, allocations: 2.192 MB / 0.4991 GB, free: 8.223 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/0.4638, allocations: 0 / 0.4991 GB, free: 8.223 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002458/0.4663, allocations: 1.211 MB / 0.5003 GB, free: 6.996 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003015/0.4693, allocations: 0.5033 MB / 0.5008 GB, free: 6.496 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04121/0.5105, allocations: 20.56 MB / 0.5209 GB, free: 1.367 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002606/0.5132, allocations: 2.427 MB / 0.5233 GB, free: 14.91 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00159/0.5148, allocations: 495.4 kB / 0.5237 GB, free: 14.42 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001592/0.5164, allocations: 1.066 MB / 0.5248 GB, free: 13.36 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5164, allocations: 0 / 0.5248 GB, free: 13.36 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3089/0.8253, allocations: 51.92 MB / 0.5755 GB, free: 103.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/14.21, allocations: 3.781 kB / 0.5755 GB, free: 103.6 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