Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001418/0.001418, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001395/0.001396, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 59.34 kB / 307.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1235, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.02369/0.1472, allocations: 12.92 MB / 370.5 MB, free: 1.039 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1676/0.3148, allocations: 4.247 MB / 374.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001881/0.3167, allocations: 81.47 kB / 374.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002316/0.3191, allocations: 0.9766 MB / 375.8 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003113/0.3223, allocations: 1.182 MB / 377 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001087/0.3234, allocations: 0.526 MB / 377.5 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004421/0.3278, allocations: 4.624 MB / 382.1 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004066/0.3319, allocations: 3.69 MB / 385.8 MB, free: 5.898 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004509/0.3364, allocations: 2.129 MB / 388 MB, free: 4.934 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005957/0.3424, allocations: 2.556 MB / 390.5 MB, free: 3.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00153/0.3439, allocations: 0.5604 MB / 391.1 MB, free: 3.793 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002272/0.3462, allocations: 0.6496 MB / 391.7 MB, free: 3.773 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001681/0.3479, allocations: 1.523 MB / 393.3 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003442/0.3513, allocations: 2.483 MB / 395.7 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006144/0.3575, allocations: 7.378 MB / 403.1 MB, free: 12.01 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3575, allocations: 0 / 403.1 MB, free: 12.01 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3575, allocations: 0 / 403.1 MB, free: 12.01 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000125/0.3577, allocations: 0 / 403.1 MB, free: 12.01 MB / 318.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.01001/0.3677, allocations: 4.707 MB / 407.8 MB, free: 7.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.3678, allocations: 11.97 kB / 407.8 MB, free: 7.238 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000646/0.3684, allocations: 0.4974 MB / 408.3 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001534/0.37, allocations: 0.5268 MB / 408.9 MB, free: 6.203 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00391/0.3739, allocations: 2.511 MB / 411.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001895/0.3741, allocations: 269.8 kB / 411.6 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005016/0.3746, allocations: 354.3 kB / 412 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007592/0.3822, allocations: 5.031 MB / 417 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.142e-05/0.3823, allocations: 7.906 kB / 417 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003413/0.3826, allocations: 143 kB / 417.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001707/0.3828, allocations: 179.1 kB / 417.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006725/0.3895, allocations: 4.302 MB / 421.6 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0216/0.4112, allocations: 14.9 MB / 436.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004389/0.4156, allocations: 4.188 MB / 440.7 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003154/0.4188, allocations: 1.996 MB / 442.7 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002699/0.4191, allocations: 135.1 kB / 442.9 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.489e-05/0.4191, allocations: 56.56 kB / 442.9 MB, free: 3.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=198): time 3.677e-06/0.4191, allocations: 384 / 442.9 MB, free: 3.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=218): time 0.01994/0.4391, allocations: 9.951 MB / 452.9 MB, free: 9.477 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.908e-05/0.4392, allocations: 73.41 kB / 452.9 MB, free: 9.395 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00451/0.4437, allocations: 2.514 MB / 455.4 MB, free: 6.859 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000164/0.4439, allocations: 65.7 kB / 455.5 MB, free: 6.789 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001178/0.4451, allocations: 1.627 MB / 457.1 MB, free: 5.148 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006378/0.4457, allocations: 0.7309 MB / 457.9 MB, free: 4.426 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007885/0.4465, allocations: 416.2 kB / 458.3 MB, free: 4.012 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.4466, allocations: 309.1 kB / 458.6 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002247/0.4489, allocations: 1.301 MB / 459.9 MB, free: 2.402 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002377/0.4513, allocations: 1.775 MB / 461.7 MB, free: 448 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004371/0.4557, allocations: 3.219 MB / 464.9 MB, free: 13.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-05/0.4557, allocations: 4 kB / 464.9 MB, free: 13.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006818/0.4625, allocations: 4.071 MB / 468.9 MB, free: 8.934 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/0.4626, allocations: 8 kB / 469 MB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.911e-05/0.4626, allocations: 16 kB / 469 MB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002868/0.4655, allocations: 0.8956 MB / 469.9 MB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002053/0.4675, allocations: 0.5227 MB / 470.4 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009991/0.4775, allocations: 9.47 MB / 479.9 MB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001932/0.4795, allocations: 123.8 kB / 480 MB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002005/0.4797, allocations: 84 kB / 480.1 MB, free: 13.39 MB / 398.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.002036/0.4818, allocations: 1.223 MB / 481.3 MB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006299/0.4824, allocations: 280.6 kB / 481.6 MB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006158/0.4886, allocations: 3.711 MB / 485.3 MB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/0.4886, allocations: 23.94 kB / 485.3 MB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.159e-05/0.4886, allocations: 8 kB / 485.3 MB, free: 8.109 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.794e-05/0.4886, allocations: 11.95 kB / 485.3 MB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01309/0.5017, allocations: 8.096 MB / 493.4 MB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/0.5018, allocations: 4 kB / 493.4 MB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001626/0.5034, allocations: 383.8 kB / 493.8 MB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002984/0.5064, allocations: 0.9399 MB / 494.7 MB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001612/0.5066, allocations: 55.97 kB / 494.8 MB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01111/0.5177, allocations: 11.1 MB / 0.494 GB, free: 2.883 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.5177, allocations: 4 kB / 0.494 GB, free: 2.879 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008922/0.5266, allocations: 5.506 MB / 0.4994 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001596/0.5283, allocations: 0.6304 MB / 0.5 GB, free: 12.65 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007262/0.529, allocations: 44 kB / 0.5001 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001703/0.5307, allocations: 115.9 kB / 0.5002 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004954/0.5312, allocations: 185.7 kB / 0.5004 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001878/0.5314, allocations: 59.98 kB / 0.5004 GB, free: 12.25 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003573/0.535, allocations: 1.735 MB / 0.5021 GB, free: 10.51 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.535, allocations: 4 kB / 0.5021 GB, free: 10.5 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00288/0.5379, allocations: 0.8008 MB / 0.5029 GB, free: 9.703 MB / 430.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.00895/0.5469, allocations: 6.211 MB / 0.509 GB, free: 3.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01039/0.5573, allocations: 5.7 MB / 0.5145 GB, free: 13.65 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.5573, allocations: 0.8125 kB / 0.5145 GB, free: 13.65 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003899/0.5612, allocations: 2.487 MB / 0.517 GB, free: 11.09 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004739/0.566, allocations: 0.7943 MB / 0.5177 GB, free: 10.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2297/0.7957, allocations: 34.21 MB / 0.5511 GB, free: 130.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002078/0.7978, allocations: 2.775 MB / 0.5539 GB, free: 129.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00199/0.7998, allocations: 0.6842 MB / 0.5545 GB, free: 129.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001483/0.8013, allocations: 1.418 MB / 0.5559 GB, free: 128.3 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/0.8013, allocations: 0 / 0.5559 GB, free: 128.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1597/0.961, allocations: 74.91 MB / 0.6291 GB, free: 58.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.82, allocations: 11 kB / 0.6291 GB, free: 58.73 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches