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.001144/0.001144, allocations: 112.3 kB / 16.92 MB, free: 6.145 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.00117/0.00117, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.308/1.308, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009488/0.0009488, allocations: 39.97 kB / 300.7 MB, free: 5.754 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07718/0.07814, allocations: 49.45 MB / 350.2 MB, free: 4.301 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.008414/0.08659, allocations: 7.771 MB / 357.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004435/0.09105, allocations: 2.652 MB / 360.6 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009462/0.09202, allocations: 71.69 kB / 360.7 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00124/0.0933, allocations: 0.5586 MB / 361.2 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001658/0.09497, allocations: 0.7301 MB / 362 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007647/0.09575, allocations: 415.5 kB / 362.4 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002787/0.09855, allocations: 3.265 MB / 365.6 MB, free: 4.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003477/0.102, allocations: 3.592 MB / 369.2 MB, free: 1.117 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.142/0.2441, allocations: 1.642 MB / 370.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002707/0.2468, allocations: 2.027 MB / 372.9 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008192/0.2476, allocations: 461.7 kB / 373.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001266/0.2489, allocations: 0.6717 MB / 374 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009778/0.2499, allocations: 1.241 MB / 375.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001789/0.2517, allocations: 1.967 MB / 377.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004535/0.2562, allocations: 6.048 MB / 383.3 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.2563, allocations: 1.219 kB / 383.3 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2563, allocations: 1.719 kB / 383.3 MB, free: 9.727 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.475e-05/0.2563, allocations: 0 / 383.3 MB, free: 9.727 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.006454/0.2628, allocations: 3.793 MB / 387.1 MB, free: 7.199 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.2629, allocations: 9.344 kB / 387.1 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004616/0.2633, allocations: 428.7 kB / 387.5 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008931/0.2642, allocations: 393.7 kB / 387.9 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002738/0.267, allocations: 2.087 MB / 390 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.2671, allocations: 222.5 kB / 390.2 MB, free: 5.258 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003798/0.2675, allocations: 283.5 kB / 390.5 MB, free: 5.164 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005508/0.273, allocations: 4.191 MB / 394.6 MB, free: 2.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.632e-05/0.2731, allocations: 5.375 kB / 394.7 MB, free: 2.727 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002621/0.2733, allocations: 116.8 kB / 394.8 MB, free: 2.637 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001365/0.2735, allocations: 143.4 kB / 394.9 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004588/0.2781, allocations: 3.486 MB / 398.4 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01592/0.294, allocations: 10.92 MB / 409.3 MB, free: 7.266 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00282/0.2969, allocations: 2.634 MB / 411.9 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002392/0.2993, allocations: 1.479 MB / 413.4 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002401/0.2995, allocations: 125.9 kB / 413.5 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.96e-05/0.2996, allocations: 58.94 kB / 413.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=128): time 3.256e-06/0.2996, allocations: 0 / 413.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=133): time 0.009291/0.3089, allocations: 5.168 MB / 418.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.064e-05/0.309, allocations: 90.42 kB / 418.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002658/0.3117, allocations: 1.912 MB / 420.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.227e-05/0.3118, allocations: 49.69 kB / 420.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008415/0.3126, allocations: 1.321 MB / 422.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003255/0.3129, allocations: 458.6 kB / 422.6 MB, free: 9.707 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004294/0.3134, allocations: 267.3 kB / 422.8 MB, free: 9.441 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.302e-05/0.3135, allocations: 309.1 kB / 423.1 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00119/0.3147, allocations: 0.8198 MB / 424 MB, free: 8.316 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001385/0.3161, allocations: 1.176 MB / 425.1 MB, free: 7.004 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002622/0.3187, allocations: 2.083 MB / 427.2 MB, free: 4.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-06/0.3187, allocations: 6.625 kB / 427.2 MB, free: 4.816 MB / 334.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004065/0.3228, allocations: 2.522 MB / 429.8 MB, free: 2.355 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.3228, allocations: 8 kB / 429.8 MB, free: 2.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/0.3228, allocations: 12 kB / 429.8 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00184/0.3247, allocations: 484.3 kB / 430.2 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.326, allocations: 330.2 kB / 430.6 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005156/0.3312, allocations: 4.404 MB / 435 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001432/0.3327, allocations: 87.98 kB / 435.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.3328, allocations: 59.98 kB / 435.1 MB, free: 12.89 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.001646/0.3345, allocations: 1.054 MB / 436.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004003/0.3349, allocations: 192.4 kB / 436.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003413/0.3383, allocations: 2.142 MB / 438.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.274e-05/0.3383, allocations: 19.94 kB / 438.5 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.3383, allocations: 7.938 kB / 438.5 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.3384, allocations: 7.969 kB / 438.5 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007937/0.3463, allocations: 5.187 MB / 443.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-06/0.3463, allocations: 4 kB / 443.7 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009965/0.3473, allocations: 230.5 kB / 444 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001748/0.3491, allocations: 456.3 kB / 444.4 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.069e-05/0.3492, allocations: 35.03 kB / 444.4 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004927/0.3541, allocations: 4.31 MB / 448.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.3541, allocations: 0 / 448.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004879/0.359, allocations: 3.257 MB / 452 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00093/0.36, allocations: 450.8 kB / 452.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000274/0.3603, allocations: 35.98 kB / 452.5 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.3613, allocations: 91.97 kB / 452.6 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002328/0.3615, allocations: 99.42 kB / 452.7 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.354e-05/0.3616, allocations: 39.98 kB / 452.7 MB, free: 11.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001888/0.3635, allocations: 1.33 MB / 454 MB, free: 9.805 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3636, allocations: 4 kB / 454 MB, free: 9.801 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001816/0.3654, allocations: 0.5575 MB / 454.6 MB, free: 9.246 MB / 366.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.005333/0.3707, allocations: 3.935 MB / 458.5 MB, free: 5.301 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005043/0.3758, allocations: 2.857 MB / 461.4 MB, free: 2.477 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.3758, allocations: 2.625 kB / 461.4 MB, free: 2.477 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001943/0.3778, allocations: 1.213 MB / 462.6 MB, free: 1.266 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002606/0.3804, allocations: 0.513 MB / 463.1 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0326/0.413, allocations: 22.36 MB / 485.5 MB, free: 9.152 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002072/0.4151, allocations: 2.431 MB / 487.9 MB, free: 6.691 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001469/0.4166, allocations: 491.4 kB / 488.4 MB, free: 6.207 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001324/0.4179, allocations: 1.069 MB / 489.5 MB, free: 5.137 MB / 398.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4179, allocations: 0 / 489.5 MB, free: 5.137 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08753/0.5054, allocations: 50.84 MB / 0.5276 GB, free: 2.863 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.888/10.39, allocations: 7.75 kB / 0.5276 GB, free: 2.859 MB / 446.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