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.001063/0.001063, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001159/0.001159, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 64.97 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07774/0.07907, allocations: 50.54 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.008438/0.08754, allocations: 7.767 MB / 365.4 MB, free: 6.152 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004514/0.09208, allocations: 2.726 MB / 368.1 MB, free: 3.418 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001004/0.0931, allocations: 71.69 kB / 368.2 MB, free: 3.348 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001369/0.0945, allocations: 0.5663 MB / 368.7 MB, free: 2.777 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001908/0.09642, allocations: 0.7224 MB / 369.4 MB, free: 2.051 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009129/0.09735, allocations: 427.4 kB / 369.9 MB, free: 1.633 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1443/0.2416, allocations: 3.266 MB / 373.1 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003812/0.2455, allocations: 3.589 MB / 376.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002496/0.248, allocations: 1.657 MB / 378.4 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002184/0.2502, allocations: 2.033 MB / 380.4 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006217/0.2508, allocations: 460.5 kB / 380.9 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001135/0.252, allocations: 0.6494 MB / 381.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009934/0.253, allocations: 1.241 MB / 382.7 MB, free: 7.816 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001775/0.2548, allocations: 1.976 MB / 384.7 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004516/0.2593, allocations: 6.043 MB / 390.8 MB, free: 4.008 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2593, allocations: 1.188 kB / 390.8 MB, free: 4.008 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2593, allocations: 0 / 390.8 MB, free: 4.008 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.371e-05/0.2594, allocations: 4 kB / 390.8 MB, free: 4.004 MB / 302.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.006349/0.2658, allocations: 3.806 MB / 394.6 MB, free: 1.453 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.2658, allocations: 9.875 kB / 394.6 MB, free: 1.453 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004593/0.2663, allocations: 426.6 kB / 395 MB, free: 1.145 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001308/0.2676, allocations: 428 kB / 395.4 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002749/0.2704, allocations: 2.103 MB / 397.5 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.2705, allocations: 217.2 kB / 397.7 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003638/0.2709, allocations: 291.3 kB / 398 MB, free: 15.4 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005956/0.2768, allocations: 4.193 MB / 402.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.376e-05/0.2769, allocations: 0 / 402.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002841/0.2772, allocations: 123.9 kB / 402.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000147/0.2773, allocations: 137.9 kB / 402.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00527/0.2826, allocations: 3.489 MB / 406 MB, free: 8.641 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01577/0.2984, allocations: 10.91 MB / 416.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002624/0.3011, allocations: 2.649 MB / 419.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00234/0.3034, allocations: 1.477 MB / 421 MB, free: 9.457 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002419/0.3037, allocations: 133.6 kB / 421.1 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/0.3037, allocations: 47.56 kB / 421.2 MB, free: 9.258 MB / 334.1 MB Notification: Performance of pre-optimization done (n=128): time 3.226e-06/0.3037, allocations: 0 / 421.2 MB, free: 9.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=133): time 0.008648/0.3124, allocations: 5.168 MB / 426.3 MB, free: 4.055 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.3124, allocations: 90.42 kB / 426.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002459/0.3149, allocations: 1.924 MB / 428.3 MB, free: 2.023 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.08e-05/0.315, allocations: 50.88 kB / 428.4 MB, free: 1.969 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000812/0.3158, allocations: 1.326 MB / 429.7 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003099/0.3161, allocations: 452.9 kB / 430.2 MB, free: 196 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004396/0.3166, allocations: 275.6 kB / 430.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.889e-05/0.3167, allocations: 305.1 kB / 430.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/0.3179, allocations: 0.8198 MB / 431.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001383/0.3193, allocations: 1.18 MB / 432.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002617/0.3219, allocations: 2.08 MB / 434.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.106e-06/0.3219, allocations: 7.984 kB / 434.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.003814/0.3257, allocations: 2.517 MB / 437.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.3258, allocations: 12 kB / 437.3 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.3258, allocations: 11.98 kB / 437.4 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001847/0.3276, allocations: 484.7 kB / 437.8 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/0.329, allocations: 332.7 kB / 438.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004988/0.334, allocations: 4.394 MB / 442.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/0.3353, allocations: 91.64 kB / 442.6 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/0.3354, allocations: 56 kB / 442.7 MB, free: 3.383 MB / 350.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.001541/0.337, allocations: 1.057 MB / 443.8 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003817/0.3374, allocations: 193.7 kB / 443.9 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003406/0.3408, allocations: 2.151 MB / 446.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.42e-05/0.3408, allocations: 16 kB / 446.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3408, allocations: 4 kB / 446.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.42e-05/0.3409, allocations: 7.969 kB / 446.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00782/0.3487, allocations: 5.196 MB / 451.3 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.3487, allocations: 4 kB / 451.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/0.3497, allocations: 222.4 kB / 451.5 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001782/0.3515, allocations: 460.8 kB / 452 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.514e-05/0.3516, allocations: 35.98 kB / 452 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004843/0.3565, allocations: 4.292 MB / 456.3 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3565, allocations: 3.562 kB / 456.3 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004663/0.3612, allocations: 3.255 MB / 459.6 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00082/0.362, allocations: 454.8 kB / 460 MB, free: 1.875 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002534/0.3622, allocations: 28 kB / 460 MB, free: 1.848 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.3633, allocations: 95.91 kB / 460.1 MB, free: 1.754 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002052/0.3635, allocations: 100.5 kB / 460.2 MB, free: 1.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.3636, allocations: 39.98 kB / 460.3 MB, free: 1.621 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001889/0.3655, allocations: 1.342 MB / 461.6 MB, free: 292 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3655, allocations: 4 kB / 461.6 MB, free: 288 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.001675/0.3672, allocations: 0.5624 MB / 462.2 MB, free: 15.72 MB / 382.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.005196/0.3724, allocations: 3.92 MB / 466.1 MB, free: 11.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004827/0.3772, allocations: 2.86 MB / 469 MB, free: 8.934 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.3772, allocations: 8.188 kB / 469 MB, free: 8.926 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001799/0.3791, allocations: 1.205 MB / 470.2 MB, free: 7.703 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002169/0.3812, allocations: 0.5249 MB / 470.7 MB, free: 7.184 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02937/0.4106, allocations: 22.43 MB / 493.1 MB, free: 15.4 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00201/0.4127, allocations: 2.428 MB / 495.6 MB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001437/0.4141, allocations: 499.3 kB / 496 MB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001278/0.4154, allocations: 1.069 MB / 497.1 MB, free: 11.38 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4154, allocations: 0 / 497.1 MB, free: 11.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2139/0.6293, allocations: 50.86 MB / 0.5351 GB, free: 147.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.19/10.82, allocations: 9.469 kB / 0.5351 GB, free: 147.7 MB / 446.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