Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.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.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_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.001489/0.00149, allocations: 111.8 kB / 17.06 MB, free: 6 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.001677/0.001677, allocations: 190.9 kB / 18 MB, free: 5.082 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.376/1.376, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001827/0.001827, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.349/0.3509, allocations: 49.44 MB / 400.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer): time 0.01481/0.3657, allocations: 12.85 MB / 413.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009375/0.3751, allocations: 4.179 MB / 417.3 MB, free: 7.707 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002663/0.3778, allocations: 83.62 kB / 417.4 MB, free: 7.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003116/0.381, allocations: 0.9704 MB / 418.3 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004914/0.3859, allocations: 1.176 MB / 419.5 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00182/0.3878, allocations: 0.5149 MB / 420 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00672/0.3945, allocations: 4.636 MB / 424.7 MB, free: 304 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00579/0.4003, allocations: 3.69 MB / 428.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004116/0.4045, allocations: 2.115 MB / 430.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004412/0.4089, allocations: 2.565 MB / 433 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001538/0.4105, allocations: 0.5547 MB / 433.6 MB, free: 7.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002406/0.4129, allocations: 0.6366 MB / 434.2 MB, free: 6.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002464/0.4154, allocations: 1.516 MB / 435.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004965/0.4203, allocations: 2.481 MB / 438.2 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01141/0.4318, allocations: 7.419 MB / 445.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.418e-06/0.4318, allocations: 0 / 445.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.005e-06/0.4318, allocations: 0 / 445.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003599/0.4322, allocations: 0 / 445.6 MB, free: 11.21 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.01292/0.4451, allocations: 4.703 MB / 450.4 MB, free: 6.438 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.4452, allocations: 8.031 kB / 450.4 MB, free: 6.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008658/0.4461, allocations: 0.502 MB / 450.9 MB, free: 5.918 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001424/0.4475, allocations: 0.4956 MB / 451.4 MB, free: 5.418 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006225/0.4537, allocations: 2.563 MB / 453.9 MB, free: 2.805 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002732/0.4541, allocations: 263.1 kB / 454.2 MB, free: 2.547 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001173/0.4552, allocations: 355.9 kB / 454.5 MB, free: 2.199 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008299/0.4635, allocations: 5.029 MB / 459.6 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.59e-05/0.4636, allocations: 11.89 kB / 459.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000331/0.464, allocations: 148 kB / 459.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001669/0.4642, allocations: 179.1 kB / 459.9 MB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006902/0.4711, allocations: 4.294 MB / 464.2 MB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02286/0.4939, allocations: 14.72 MB / 478.9 MB, free: 9.418 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004367/0.4983, allocations: 4.19 MB / 483.1 MB, free: 4.934 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003117/0.5015, allocations: 1.995 MB / 485.1 MB, free: 2.938 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002994/0.5018, allocations: 135 kB / 485.2 MB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.691e-05/0.5019, allocations: 52.56 kB / 485.3 MB, free: 2.727 MB / 398.1 MB Notification: Performance of pre-optimization done (n=198): time 3.907e-06/0.5019, allocations: 8.312 kB / 485.3 MB, free: 2.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=218): time 0.01929/0.5212, allocations: 9.956 MB / 495.2 MB, free: 8.652 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.327e-05/0.5213, allocations: 73.41 kB / 495.3 MB, free: 8.566 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003296/0.5246, allocations: 2.506 MB / 497.8 MB, free: 6.039 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001516/0.5247, allocations: 65.64 kB / 497.9 MB, free: 5.969 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00102/0.5257, allocations: 1.615 MB / 499.5 MB, free: 4.332 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005098/0.5263, allocations: 0.7277 MB / 0.4885 GB, free: 3.594 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006158/0.5269, allocations: 420.3 kB / 0.4889 GB, free: 3.176 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.251e-05/0.527, allocations: 301.1 kB / 0.4892 GB, free: 2.879 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00186/0.5288, allocations: 1.301 MB / 0.4904 GB, free: 1.574 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002122/0.531, allocations: 1.783 MB / 0.4922 GB, free: 15.6 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004077/0.5351, allocations: 3.211 MB / 0.4953 GB, free: 12.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.575e-06/0.5351, allocations: 4 kB / 0.4953 GB, free: 12.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006296/0.5414, allocations: 4.071 MB / 0.4993 GB, free: 8.105 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.5414, allocations: 15.28 kB / 0.4993 GB, free: 8.094 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.938e-05/0.5415, allocations: 12 kB / 0.4993 GB, free: 8.082 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002656/0.5441, allocations: 0.8838 MB / 0.5002 GB, free: 7.184 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002033/0.5462, allocations: 0.5266 MB / 0.5007 GB, free: 6.656 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009591/0.5558, allocations: 9.484 MB / 0.51 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001983/0.5578, allocations: 123.9 kB / 0.5101 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001842/0.558, allocations: 80 kB / 0.5102 GB, free: 12.56 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.001928/0.5599, allocations: 1.215 MB / 0.5113 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005105/0.5604, allocations: 276.7 kB / 0.5116 GB, free: 11.06 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006045/0.5665, allocations: 3.715 MB / 0.5152 GB, free: 7.316 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-05/0.5665, allocations: 20 kB / 0.5153 GB, free: 7.297 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.689e-05/0.5666, allocations: 8 kB / 0.5153 GB, free: 7.289 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.866e-05/0.5666, allocations: 11.95 kB / 0.5153 GB, free: 7.277 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01452/0.5811, allocations: 8.006 MB / 0.5231 GB, free: 15.15 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-05/0.5812, allocations: 4 kB / 0.5231 GB, free: 15.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001727/0.5829, allocations: 387.8 kB / 0.5235 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003095/0.586, allocations: 0.9251 MB / 0.5244 GB, free: 13.82 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002367/0.5863, allocations: 55.98 kB / 0.5244 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01203/0.5983, allocations: 11.11 MB / 0.5353 GB, free: 2.109 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.5984, allocations: 4 kB / 0.5353 GB, free: 2.105 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2028/0.8011, allocations: 5.497 MB / 0.5406 GB, free: 128.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001659/0.8028, allocations: 0.6338 MB / 0.5413 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003958/0.8033, allocations: 49.06 kB / 0.5413 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/0.8046, allocations: 121.2 kB / 0.5414 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003889/0.805, allocations: 182.1 kB / 0.5416 GB, free: 127.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/0.8051, allocations: 59.02 kB / 0.5417 GB, free: 127.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00213/0.8073, allocations: 1.732 MB / 0.5433 GB, free: 127.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8073, allocations: 0 / 0.5433 GB, free: 127.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00246/0.8097, allocations: 0.798 MB / 0.5441 GB, free: 127.2 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.007102/0.8168, allocations: 6.197 MB / 0.5502 GB, free: 124.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004965/0.8218, allocations: 3.891 MB / 0.554 GB, free: 122.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.8219, allocations: 2.438 kB / 0.554 GB, free: 122.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002988/0.8248, allocations: 2.477 MB / 0.5564 GB, free: 120.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003419/0.8283, allocations: 0.7877 MB / 0.5572 GB, free: 120.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05798/0.8863, allocations: 29.45 MB / 0.5859 GB, free: 90.73 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003724/0.89, allocations: 2.773 MB / 0.5886 GB, free: 87.93 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003219/0.8933, allocations: 0.6827 MB / 0.5893 GB, free: 87.24 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002558/0.8959, allocations: 1.413 MB / 0.5907 GB, free: 85.83 MB / 462.1 MB Notification: Performance of SimCode: time 8.01e-07/0.8959, allocations: 0 / 0.5907 GB, free: 85.83 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1661/1.062, allocations: 73.56 MB / 0.6625 GB, free: 12.97 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.66/15.73, allocations: 7.5 kB / 0.6625 GB, free: 12.96 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.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_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches