Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.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.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",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.001209/0.001209, allocations: 110.5 kB / 17.06 MB, free: 6.098 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.001229/0.001229, allocations: 198.9 kB / 18 MB, free: 5.172 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.328/1.328, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001055, allocations: 51.92 kB / 350.9 MB, free: 3.68 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.259, allocations: 49.43 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01338/0.2724, allocations: 12.89 MB / 413.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007845/0.2803, allocations: 4.179 MB / 417.3 MB, free: 7.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001937/0.2823, allocations: 79.69 kB / 417.4 MB, free: 7.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002298/0.2846, allocations: 0.9665 MB / 418.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003264/0.2879, allocations: 1.169 MB / 419.6 MB, free: 5.426 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001093/0.289, allocations: 0.5149 MB / 420.1 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004842/0.2939, allocations: 4.64 MB / 424.7 MB, free: 260 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004039/0.2979, allocations: 3.69 MB / 428.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00346/0.3014, allocations: 2.134 MB / 430.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003558/0.305, allocations: 2.553 MB / 433.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009064/0.3059, allocations: 0.5546 MB / 433.6 MB, free: 7.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001323/0.3072, allocations: 0.6366 MB / 434.3 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001414/0.3086, allocations: 1.523 MB / 435.8 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002957/0.3116, allocations: 2.485 MB / 438.3 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006781/0.3184, allocations: 7.419 MB / 445.7 MB, free: 11.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.934e-06/0.3184, allocations: 4 kB / 445.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3184, allocations: 0 / 445.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001582/0.3186, allocations: 0 / 445.7 MB, free: 11.14 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.01023/0.3288, allocations: 4.691 MB / 450.4 MB, free: 6.387 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.3289, allocations: 12.03 kB / 450.4 MB, free: 6.375 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007389/0.3297, allocations: 0.502 MB / 450.9 MB, free: 5.863 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001283/0.3309, allocations: 0.4917 MB / 451.4 MB, free: 5.367 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00488/0.3358, allocations: 2.567 MB / 454 MB, free: 2.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002072/0.3361, allocations: 267 kB / 454.2 MB, free: 2.488 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006788/0.3368, allocations: 355.9 kB / 454.6 MB, free: 2.141 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008708/0.3455, allocations: 5.025 MB / 459.6 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.921e-05/0.3456, allocations: 7.906 kB / 459.6 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003339/0.3459, allocations: 152 kB / 459.8 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002227/0.3462, allocations: 179.1 kB / 459.9 MB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007396/0.3536, allocations: 4.294 MB / 464.2 MB, free: 8.418 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02442/0.378, allocations: 14.72 MB / 479 MB, free: 9.359 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004357/0.3824, allocations: 4.198 MB / 483.2 MB, free: 4.867 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003122/0.3855, allocations: 1.987 MB / 485.1 MB, free: 2.879 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002557/0.3858, allocations: 131.1 kB / 485.3 MB, free: 2.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.629e-05/0.3859, allocations: 56.56 kB / 485.3 MB, free: 2.668 MB / 398.1 MB Notification: Performance of pre-optimization done (n=198): time 3.557e-06/0.3859, allocations: 3.938 kB / 485.3 MB, free: 2.664 MB / 398.1 MB Notification: Performance of matching and sorting (n=218): time 0.01986/0.4058, allocations: 9.949 MB / 495.3 MB, free: 8.605 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/0.4058, allocations: 77.41 kB / 495.4 MB, free: 8.516 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003886/0.4097, allocations: 2.502 MB / 497.9 MB, free: 5.992 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003544/0.4101, allocations: 61.7 kB / 497.9 MB, free: 5.926 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001412/0.4115, allocations: 1.615 MB / 499.5 MB, free: 4.289 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008964/0.4125, allocations: 0.7355 MB / 0.4885 GB, free: 3.543 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007442/0.4132, allocations: 420.2 kB / 0.4889 GB, free: 3.125 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.4134, allocations: 305.1 kB / 0.4892 GB, free: 2.824 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002184/0.4155, allocations: 1.297 MB / 0.4905 GB, free: 1.523 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002464/0.418, allocations: 1.782 MB / 0.4922 GB, free: 15.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004486/0.4225, allocations: 3.208 MB / 0.4954 GB, free: 12.16 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/0.4226, allocations: 4 kB / 0.4954 GB, free: 12.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007142/0.4297, allocations: 4.075 MB / 0.4994 GB, free: 8.055 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/0.4298, allocations: 12.06 kB / 0.4994 GB, free: 8.043 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.57e-05/0.4298, allocations: 16 kB / 0.4994 GB, free: 8.027 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002728/0.4325, allocations: 0.8872 MB / 0.5003 GB, free: 7.125 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002008/0.4345, allocations: 0.5266 MB / 0.5008 GB, free: 6.598 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01038/0.4449, allocations: 9.476 MB / 0.51 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002096/0.4471, allocations: 111.9 kB / 0.5101 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/0.4473, allocations: 87.98 kB / 0.5102 GB, free: 12.51 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,25,77.8%), (2,12,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002212/0.4495, allocations: 1.218 MB / 0.5114 GB, free: 11.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006329/0.4501, allocations: 276.7 kB / 0.5117 GB, free: 11.01 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006233/0.4564, allocations: 3.707 MB / 0.5153 GB, free: 7.273 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.861e-05/0.4564, allocations: 20 kB / 0.5153 GB, free: 7.254 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/0.4564, allocations: 8 kB / 0.5153 GB, free: 7.246 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-05/0.4564, allocations: 15.95 kB / 0.5153 GB, free: 7.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01521/0.4717, allocations: 8.017 MB / 0.5232 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.167e-05/0.4717, allocations: 4.062 kB / 0.5232 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001738/0.4735, allocations: 383.5 kB / 0.5235 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003252/0.4767, allocations: 0.9271 MB / 0.5244 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002414/0.477, allocations: 55.97 kB / 0.5245 GB, free: 13.72 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01224/0.4893, allocations: 11.09 MB / 0.5353 GB, free: 2.07 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/0.4893, allocations: 7.938 kB / 0.5353 GB, free: 2.062 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2226/0.7119, allocations: 5.508 MB / 0.5407 GB, free: 128.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00174/0.7136, allocations: 0.633 MB / 0.5413 GB, free: 128.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005801/0.7142, allocations: 48.05 kB / 0.5414 GB, free: 128.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001526/0.7158, allocations: 119 kB / 0.5415 GB, free: 128.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004718/0.7163, allocations: 176.1 kB / 0.5416 GB, free: 128.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001403/0.7164, allocations: 67.73 kB / 0.5417 GB, free: 128 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002437/0.7189, allocations: 1.728 MB / 0.5434 GB, free: 127.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7189, allocations: 3.969 kB / 0.5434 GB, free: 127.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002722/0.7216, allocations: 0.8006 MB / 0.5442 GB, free: 127.3 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,25,88.9%), (2,12,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007602/0.7292, allocations: 6.194 MB / 0.5502 GB, free: 124.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005251/0.7345, allocations: 3.886 MB / 0.554 GB, free: 122.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.7345, allocations: 0 / 0.554 GB, free: 122.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003316/0.7379, allocations: 2.486 MB / 0.5565 GB, free: 120.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003745/0.7416, allocations: 0.7859 MB / 0.5572 GB, free: 120.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0379/0.7796, allocations: 29.45 MB / 0.586 GB, free: 90.78 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001874/0.7815, allocations: 2.769 MB / 0.5887 GB, free: 87.98 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001761/0.7833, allocations: 0.6866 MB / 0.5894 GB, free: 87.29 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001358/0.7846, allocations: 1.409 MB / 0.5907 GB, free: 85.89 MB / 462.1 MB Notification: Performance of SimCode: time 6.71e-07/0.7846, allocations: 0 / 0.5907 GB, free: 85.89 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1076/0.8923, allocations: 73.56 MB / 0.6626 GB, free: 13.02 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.03/15.93, allocations: 7.688 kB / 0.6626 GB, free: 13.02 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/Transformers/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches