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.001144/0.001144, allocations: 108 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.001132/0.001132, 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.815/1.815, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009698/0.0009698, allocations: 48.23 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1209, allocations: 49.45 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer): time 0.01445/0.1354, allocations: 12.86 MB / 363 MB, free: 7.383 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00968/0.1452, allocations: 4.187 MB / 367.2 MB, free: 3.184 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003036/0.1482, allocations: 83.62 kB / 367.3 MB, free: 3.102 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003824/0.1522, allocations: 0.9626 MB / 368.3 MB, free: 2.133 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006065/0.1583, allocations: 1.177 MB / 369.4 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0023/0.1606, allocations: 0.5032 MB / 369.9 MB, free: 456 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2164/0.3771, allocations: 4.616 MB / 374.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005593/0.3827, allocations: 3.694 MB / 378.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006107/0.3888, allocations: 2.108 MB / 380.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006948/0.3958, allocations: 2.556 MB / 382.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003505/0.3994, allocations: 0.5519 MB / 383.5 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004734/0.4041, allocations: 0.6418 MB / 384.1 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003816/0.408, allocations: 1.517 MB / 385.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007761/0.4158, allocations: 2.479 MB / 388.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008798/0.4246, allocations: 7.353 MB / 395.5 MB, free: 3.051 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.827e-06/0.4247, allocations: 0 / 395.5 MB, free: 3.051 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4247, allocations: 0 / 395.5 MB, free: 3.051 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002532/0.4249, allocations: 0 / 395.5 MB, free: 3.051 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.0107/0.4356, allocations: 4.696 MB / 400.2 MB, free: 15.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.4357, allocations: 8.031 kB / 400.2 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007623/0.4365, allocations: 0.5016 MB / 400.7 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00136/0.4378, allocations: 0.4956 MB / 401.2 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004188/0.442, allocations: 2.496 MB / 403.7 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002104/0.4423, allocations: 262.9 kB / 403.9 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005487/0.4428, allocations: 355.8 kB / 404.3 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009575/0.4524, allocations: 5.029 MB / 409.3 MB, free: 6.547 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.641e-05/0.4525, allocations: 4 kB / 409.3 MB, free: 6.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003358/0.4528, allocations: 147.3 kB / 409.4 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001817/0.453, allocations: 183.1 kB / 409.6 MB, free: 6.223 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008246/0.4613, allocations: 4.296 MB / 413.9 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02969/0.491, allocations: 14.9 MB / 428.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005017/0.4961, allocations: 4.185 MB / 433 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003322/0.4994, allocations: 2.003 MB / 435 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002964/0.4997, allocations: 131.1 kB / 435.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.188e-05/0.4998, allocations: 64.5 kB / 435.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=198): time 4.028e-06/0.4998, allocations: 0 / 435.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=218): time 0.02254/0.5224, allocations: 9.951 MB / 445.1 MB, free: 2.215 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.574e-05/0.5225, allocations: 73.41 kB / 445.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007005/0.5295, allocations: 2.498 MB / 447.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005076/0.53, allocations: 65.7 kB / 447.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001904/0.5319, allocations: 1.618 MB / 449.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001189/0.5332, allocations: 0.7284 MB / 450.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001586/0.5348, allocations: 416.3 kB / 450.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.5349, allocations: 301.1 kB / 450.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003393/0.5383, allocations: 1.305 MB / 452.1 MB, free: 11.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003871/0.5422, allocations: 1.778 MB / 453.9 MB, free: 9.203 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005861/0.5481, allocations: 3.215 MB / 457.1 MB, free: 5.812 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.111e-05/0.5482, allocations: 4 kB / 457.1 MB, free: 5.809 MB / 366.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.01119/0.5594, allocations: 4.075 MB / 461.2 MB, free: 1.707 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.138e-05/0.5594, allocations: 12 kB / 461.2 MB, free: 1.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.885e-05/0.5595, allocations: 12 kB / 461.2 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003889/0.5634, allocations: 0.8969 MB / 462.1 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003585/0.567, allocations: 0.5188 MB / 462.6 MB, free: 260 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01667/0.5837, allocations: 9.492 MB / 472.1 MB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003529/0.5873, allocations: 111.9 kB / 472.2 MB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000631/0.5879, allocations: 91.98 kB / 472.3 MB, free: 6.156 MB / 382.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.003513/0.5914, allocations: 1.215 MB / 473.5 MB, free: 4.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001357/0.5928, allocations: 272.7 kB / 473.8 MB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007707/0.6005, allocations: 3.715 MB / 477.5 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.82e-05/0.6006, allocations: 20 kB / 477.5 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.762e-05/0.6006, allocations: 8 kB / 477.6 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.167e-05/0.6006, allocations: 11.95 kB / 477.6 MB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01734/0.618, allocations: 8.084 MB / 485.6 MB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/0.618, allocations: 4 kB / 485.7 MB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001657/0.6197, allocations: 395.7 kB / 486 MB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00304/0.6227, allocations: 0.933 MB / 487 MB, free: 7.387 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001936/0.6229, allocations: 55.97 kB / 487 MB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01265/0.6356, allocations: 11.1 MB / 498.1 MB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/0.6356, allocations: 4 kB / 498.1 MB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009492/0.6451, allocations: 5.503 MB / 0.4918 GB, free: 6.109 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001923/0.6471, allocations: 0.6343 MB / 0.4925 GB, free: 5.453 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001004/0.6481, allocations: 44 kB / 0.4925 GB, free: 5.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002317/0.6504, allocations: 115.9 kB / 0.4926 GB, free: 5.297 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006605/0.6511, allocations: 185.7 kB / 0.4928 GB, free: 5.113 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002348/0.6514, allocations: 59.98 kB / 0.4928 GB, free: 5.055 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004285/0.6557, allocations: 1.731 MB / 0.4945 GB, free: 3.312 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6557, allocations: 0 / 0.4945 GB, free: 3.312 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004034/0.6597, allocations: 0.8008 MB / 0.4953 GB, free: 2.512 MB / 414.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.01012/0.6699, allocations: 6.21 MB / 0.5014 GB, free: 12.23 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01108/0.681, allocations: 5.701 MB / 0.5069 GB, free: 6.449 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/0.681, allocations: 4 kB / 0.5069 GB, free: 6.445 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004195/0.6852, allocations: 2.476 MB / 0.5094 GB, free: 3.898 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005497/0.6907, allocations: 0.7865 MB / 0.5101 GB, free: 3.121 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2806/0.9713, allocations: 34.13 MB / 0.5435 GB, free: 143.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002788/0.9742, allocations: 2.775 MB / 0.5462 GB, free: 142.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002371/0.9766, allocations: 0.6798 MB / 0.5468 GB, free: 142.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00166/0.9782, allocations: 1.413 MB / 0.5482 GB, free: 141.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.743e-06/0.9783, allocations: 0 / 0.5482 GB, free: 141.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1273/1.106, allocations: 74.72 MB / 0.6212 GB, free: 76.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.76, allocations: 8.984 kB / 0.6212 GB, free: 76.79 MB / 446.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