Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_3_2_3_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.001689/0.001689, allocations: 102.4 kB / 17.58 MB, free: 5.418 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.00187/0.00187, allocations: 191.9 kB / 18.5 MB, free: 4.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.362/1.362, allocations: 205.1 MB / 224.4 MB, free: 12.28 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 52.16 kB / 280.8 MB, free: 3.062 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07551/0.07678, allocations: 46.63 MB / 327.4 MB, free: 4.367 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.008131/0.08495, allocations: 7.717 MB / 335.1 MB, free: 12.6 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00444/0.08942, allocations: 2.727 MB / 337.8 MB, free: 9.863 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006878/0.09018, allocations: 55.69 kB / 337.9 MB, free: 9.809 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001136/0.09133, allocations: 0.5588 MB / 338.4 MB, free: 9.246 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001522/0.09287, allocations: 0.738 MB / 339.2 MB, free: 8.504 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007659/0.09364, allocations: 439.4 kB / 339.6 MB, free: 8.074 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002892/0.09655, allocations: 3.386 MB / 343 MB, free: 4.676 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003283/0.09985, allocations: 3.43 MB / 346.4 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002322/0.1022, allocations: 1.658 MB / 348.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002342/0.1045, allocations: 2.02 MB / 350.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005983/0.1051, allocations: 460 kB / 350.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001097/0.1063, allocations: 0.6753 MB / 351.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001065/0.1073, allocations: 1.239 MB / 352.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001995/0.1093, allocations: 1.964 MB / 354.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005301/0.1146, allocations: 6.041 MB / 360.5 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1147, allocations: 0 / 360.5 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1147, allocations: 0 / 360.5 MB, free: 3.109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001293/0.1148, allocations: 0 / 360.5 MB, free: 3.109 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.007583/0.1224, allocations: 3.771 MB / 364.2 MB, free: 15.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.1225, allocations: 12.03 kB / 364.3 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006847/0.1232, allocations: 429.8 kB / 364.7 MB, free: 14.83 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001093/0.1243, allocations: 396.6 kB / 365.1 MB, free: 14.44 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003092/0.1274, allocations: 1.956 MB / 367 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001708/0.1276, allocations: 221.8 kB / 367.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004474/0.128, allocations: 287.9 kB / 367.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006706/0.1347, allocations: 4.187 MB / 371.7 MB, free: 7.691 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.73e-05/0.1348, allocations: 0 / 371.7 MB, free: 7.691 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002757/0.1351, allocations: 116 kB / 371.8 MB, free: 7.578 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001684/0.1353, allocations: 145.9 kB / 372 MB, free: 7.434 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005639/0.1409, allocations: 3.486 MB / 375.4 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1575/0.2984, allocations: 10.94 MB / 386.4 MB, free: 46.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002349/0.3008, allocations: 2.645 MB / 389 MB, free: 44.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002162/0.303, allocations: 1.482 MB / 390.5 MB, free: 44.2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002114/0.3032, allocations: 130.5 kB / 390.6 MB, free: 44.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.3032, allocations: 47.83 kB / 390.7 MB, free: 44.05 MB / 318.1 MB Notification: Performance of pre-optimization done (n=128): time 3.577e-06/0.3033, allocations: 0 / 390.7 MB, free: 44.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=133): time 0.007883/0.3111, allocations: 5.279 MB / 396 MB, free: 41.36 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/0.3112, allocations: 100.4 kB / 396.1 MB, free: 41.26 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002084/0.3133, allocations: 1.907 MB / 398 MB, free: 40.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.568e-05/0.3134, allocations: 49.61 kB / 398 MB, free: 40.22 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005086/0.3139, allocations: 1.314 MB / 399.3 MB, free: 39.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002144/0.3141, allocations: 466.5 kB / 399.8 MB, free: 38.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003366/0.3145, allocations: 266.9 kB / 400 MB, free: 38.54 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.272e-05/0.3145, allocations: 309.1 kB / 400.4 MB, free: 38.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/0.3155, allocations: 0.8204 MB / 401.2 MB, free: 37.8 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001083/0.3166, allocations: 1.186 MB / 402.4 MB, free: 36.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002079/0.3187, allocations: 2.089 MB / 404.4 MB, free: 35.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.3187, allocations: 3.719 kB / 404.4 MB, free: 35.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.003261/0.322, allocations: 2.525 MB / 407 MB, free: 33.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.322, allocations: 8 kB / 407 MB, free: 33.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-05/0.322, allocations: 12 kB / 407 MB, free: 33.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001663/0.3237, allocations: 483.1 kB / 407.5 MB, free: 33.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.3249, allocations: 335.5 kB / 407.8 MB, free: 33.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004059/0.3289, allocations: 4.41 MB / 412.2 MB, free: 28.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/0.3304, allocations: 79.94 kB / 412.3 MB, free: 28.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001363/0.3305, allocations: 63.98 kB / 412.3 MB, free: 28.36 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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.001746/0.3323, allocations: 1.048 MB / 413.4 MB, free: 27.3 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004325/0.3327, allocations: 189.8 kB / 413.6 MB, free: 27.11 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003252/0.336, allocations: 2.148 MB / 415.7 MB, free: 24.95 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.833e-05/0.336, allocations: 16 kB / 415.7 MB, free: 24.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3361, allocations: 7.984 kB / 415.7 MB, free: 24.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.3361, allocations: 7.984 kB / 415.8 MB, free: 24.92 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006289/0.3424, allocations: 5.199 MB / 421 MB, free: 19.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.3424, allocations: 0 / 421 MB, free: 19.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000898/0.3433, allocations: 231.6 kB / 421.2 MB, free: 19.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001513/0.3448, allocations: 461 kB / 421.6 MB, free: 18.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.07e-05/0.3449, allocations: 27.98 kB / 421.7 MB, free: 18.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003756/0.3487, allocations: 4.302 MB / 426 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3487, allocations: 0 / 426 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003671/0.3524, allocations: 3.257 MB / 429.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006388/0.353, allocations: 458.8 kB / 429.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002259/0.3532, allocations: 25.88 kB / 429.7 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009278/0.3542, allocations: 91.95 kB / 429.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000182/0.3544, allocations: 100.8 kB / 429.9 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.711e-05/0.3545, allocations: 39.98 kB / 429.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001416/0.3559, allocations: 1.338 MB / 431.3 MB, free: 9.164 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3559, allocations: 0 / 431.3 MB, free: 9.164 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001449/0.3573, allocations: 0.549 MB / 431.8 MB, free: 8.617 MB / 318.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.004112/0.3615, allocations: 3.935 MB / 435.7 MB, free: 4.641 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004187/0.3657, allocations: 2.86 MB / 438.6 MB, free: 1.777 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.992e-06/0.3657, allocations: 1.875 kB / 438.6 MB, free: 1.777 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00155/0.3672, allocations: 1.222 MB / 439.8 MB, free: 0.543 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001993/0.3692, allocations: 0.5152 MB / 440.3 MB, free: 32 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0308/0.4, allocations: 22.44 MB / 462.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002198/0.4023, allocations: 2.422 MB / 465.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001586/0.4039, allocations: 499.4 kB / 465.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001215/0.4051, allocations: 1.062 MB / 466.7 MB, free: 4.227 MB / 350.1 MB Notification: Performance of SimCode: time 7.42e-07/0.4051, allocations: 0 / 466.7 MB, free: 4.227 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0893/0.4944, allocations: 50.84 MB / 0.5055 GB, free: 1.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.17/10.66, allocations: 19.84 kB / 0.5055 GB, free: 1.23 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/Transformers/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches