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.001095/0.001095, allocations: 105.8 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.001124/0.001124, 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.318/1.318, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 47.58 kB / 300.7 MB, free: 5.754 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08705/0.08818, allocations: 49.45 MB / 350.2 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01462/0.1028, allocations: 12.87 MB / 363.1 MB, free: 7.348 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008216/0.1111, allocations: 4.187 MB / 367.2 MB, free: 3.148 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002145/0.1133, allocations: 79.69 kB / 367.3 MB, free: 3.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002941/0.1163, allocations: 0.9743 MB / 368.3 MB, free: 2.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003867/0.1201, allocations: 1.177 MB / 369.5 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001442/0.1216, allocations: 0.5071 MB / 370 MB, free: 408 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1718/0.2934, allocations: 4.611 MB / 374.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00601/0.2994, allocations: 3.687 MB / 378.3 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004301/0.3038, allocations: 2.113 MB / 380.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004664/0.3084, allocations: 2.561 MB / 382.9 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001869/0.3103, allocations: 0.5512 MB / 383.5 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003588/0.3139, allocations: 0.639 MB / 384.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00261/0.3166, allocations: 1.519 MB / 385.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005897/0.3225, allocations: 2.488 MB / 388.1 MB, free: 6.676 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007411/0.3299, allocations: 7.338 MB / 395.5 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.33, allocations: 4 kB / 395.5 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.33, allocations: 4 kB / 395.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001688/0.3301, allocations: 0 / 395.5 MB, free: 2.969 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.009769/0.3399, allocations: 4.696 MB / 400.2 MB, free: 15.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.34, allocations: 8.031 kB / 400.2 MB, free: 15.56 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000825/0.3408, allocations: 0.4973 MB / 400.7 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001401/0.3422, allocations: 0.5034 MB / 401.2 MB, free: 14.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003949/0.3462, allocations: 2.489 MB / 403.7 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001952/0.3464, allocations: 266 kB / 403.9 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004876/0.3469, allocations: 363 kB / 404.3 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007611/0.3545, allocations: 5.026 MB / 409.3 MB, free: 6.453 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.794e-05/0.3546, allocations: 4 kB / 409.3 MB, free: 6.449 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003388/0.3549, allocations: 147 kB / 409.5 MB, free: 6.309 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001702/0.3551, allocations: 179.1 kB / 409.6 MB, free: 6.133 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00683/0.362, allocations: 4.3 MB / 413.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02256/0.3845, allocations: 14.9 MB / 428.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004777/0.3893, allocations: 4.189 MB / 433 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003137/0.3925, allocations: 1.995 MB / 435 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002929/0.3928, allocations: 133.3 kB / 435.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/0.3929, allocations: 52.56 kB / 435.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=198): time 4.027e-06/0.3929, allocations: 0 / 435.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=218): time 0.02054/0.4134, allocations: 9.953 MB / 445.2 MB, free: 2.117 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/0.4135, allocations: 77.41 kB / 445.2 MB, free: 2.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00449/0.418, allocations: 2.498 MB / 447.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002665/0.4183, allocations: 65.64 kB / 447.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001304/0.4196, allocations: 1.622 MB / 449.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007179/0.4203, allocations: 0.729 MB / 450.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008059/0.4212, allocations: 416.4 kB / 450.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.4213, allocations: 305.1 kB / 450.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002076/0.4234, allocations: 1.301 MB / 452.2 MB, free: 11.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00239/0.4258, allocations: 1.781 MB / 453.9 MB, free: 9.094 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004603/0.4304, allocations: 3.207 MB / 457.1 MB, free: 5.711 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.069e-05/0.4304, allocations: 4 kB / 457.1 MB, free: 5.707 MB / 366.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006809/0.4372, allocations: 4.079 MB / 461.2 MB, free: 1.602 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.4373, allocations: 14.66 kB / 461.2 MB, free: 1.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.297e-05/0.4373, allocations: 12 kB / 461.2 MB, free: 1.578 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002769/0.4401, allocations: 0.8896 MB / 462.1 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002031/0.4421, allocations: 0.5266 MB / 462.7 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/0.4522, allocations: 9.482 MB / 472.1 MB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002124/0.4543, allocations: 115.9 kB / 472.3 MB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003085/0.4547, allocations: 84 kB / 472.3 MB, free: 6.059 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.00227/0.4569, allocations: 1.219 MB / 473.6 MB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007387/0.4577, allocations: 272.7 kB / 473.8 MB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006532/0.4642, allocations: 3.719 MB / 477.5 MB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/0.4643, allocations: 20 kB / 477.6 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.102e-05/0.4643, allocations: 15.98 kB / 477.6 MB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.886e-05/0.4643, allocations: 7.969 kB / 477.6 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01492/0.4792, allocations: 8.08 MB / 485.7 MB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.185e-05/0.4793, allocations: 4 kB / 485.7 MB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001696/0.481, allocations: 391.8 kB / 486.1 MB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003137/0.4841, allocations: 0.9334 MB / 487 MB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001907/0.4844, allocations: 63.92 kB / 487.1 MB, free: 7.223 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01145/0.4958, allocations: 11.09 MB / 498.1 MB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-05/0.4959, allocations: 11.94 kB / 498.2 MB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008837/0.5047, allocations: 5.497 MB / 0.4919 GB, free: 6.012 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001532/0.5063, allocations: 0.6305 MB / 0.4925 GB, free: 5.359 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007128/0.507, allocations: 59.92 kB / 0.4925 GB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001721/0.5087, allocations: 111.9 kB / 0.4926 GB, free: 5.191 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004413/0.5092, allocations: 181.7 kB / 0.4928 GB, free: 5.012 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001569/0.5093, allocations: 63.98 kB / 0.4929 GB, free: 4.949 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003214/0.5126, allocations: 1.723 MB / 0.4945 GB, free: 3.215 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5126, allocations: 0 / 0.4945 GB, free: 3.215 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003013/0.5156, allocations: 0.8008 MB / 0.4953 GB, free: 2.414 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.009542/0.5251, allocations: 6.207 MB / 0.5014 GB, free: 12.13 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0103/0.5355, allocations: 5.7 MB / 0.507 GB, free: 6.352 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.72e-06/0.5355, allocations: 0 / 0.507 GB, free: 6.352 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003812/0.5393, allocations: 2.488 MB / 0.5094 GB, free: 3.793 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004025/0.5433, allocations: 0.781 MB / 0.5102 GB, free: 3.02 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1955/0.7389, allocations: 34.13 MB / 0.5435 GB, free: 142.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003217/0.7421, allocations: 2.783 MB / 0.5462 GB, free: 141.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002512/0.7446, allocations: 0.6799 MB / 0.5469 GB, free: 141.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00172/0.7464, allocations: 1.413 MB / 0.5482 GB, free: 140.2 MB / 446.1 MB Notification: Performance of SimCode: time 8.01e-07/0.7464, allocations: 3.656 kB / 0.5482 GB, free: 140.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1018/0.8482, allocations: 74.72 MB / 0.6212 GB, free: 76.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.7, allocations: 4.062 kB / 0.6212 GB, free: 76.4 MB / 446.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