Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00234/0.00234, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.519/1.519, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_1_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_1_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 52.06 kB / 373 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1175, allocations: 53.33 MB / 426.3 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.2508/0.3683, allocations: 12.97 MB / 439.3 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008408/0.3767, allocations: 4.272 MB / 443.6 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002975/0.3797, allocations: 98.75 kB / 443.7 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003409/0.3831, allocations: 1.03 MB / 444.7 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004993/0.3881, allocations: 1.236 MB / 446 MB, free: 252 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001849/0.39, allocations: 0.5228 MB / 446.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007314/0.3973, allocations: 4.65 MB / 451.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003994/0.4013, allocations: 2.697 MB / 453.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004924/0.4062, allocations: 2.182 MB / 456 MB, free: 11.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005321/0.4115, allocations: 2.628 MB / 458.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001644/0.4132, allocations: 0.551 MB / 459.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002118/0.4153, allocations: 0.6569 MB / 459.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0018/0.4171, allocations: 1.541 MB / 461.4 MB, free: 9.281 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004867/0.422, allocations: 2.49 MB / 463.9 MB, free: 7.535 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01027/0.4322, allocations: 7.462 MB / 471.3 MB, free: 2.008 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.4322, allocations: 1.156 kB / 471.3 MB, free: 2.008 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4322, allocations: 0 / 471.3 MB, free: 2.008 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000257/0.4325, allocations: 0 / 471.3 MB, free: 2.008 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.01384/0.4463, allocations: 4.826 MB / 476.2 MB, free: 14.74 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.4464, allocations: 9.625 kB / 476.2 MB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001457/0.4478, allocations: 0.5003 MB / 476.7 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002303/0.4501, allocations: 0.5553 MB / 477.2 MB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006234/0.4564, allocations: 2.608 MB / 479.8 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000271/0.4566, allocations: 263.1 kB / 480.1 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001075/0.4577, allocations: 351.9 kB / 480.4 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0107/0.4684, allocations: 5.025 MB / 485.5 MB, free: 5.527 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.439e-05/0.4685, allocations: 21 kB / 485.5 MB, free: 5.508 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004242/0.4689, allocations: 140 kB / 485.6 MB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000193/0.4691, allocations: 183.1 kB / 485.8 MB, free: 5.188 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008703/0.4778, allocations: 4.294 MB / 490.1 MB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02825/0.5061, allocations: 14.76 MB / 0.493 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004786/0.5109, allocations: 4.055 MB / 0.497 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003314/0.5142, allocations: 1.874 MB / 0.4988 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002945/0.5145, allocations: 131.1 kB / 0.4989 GB, free: 11.47 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.955e-05/0.5145, allocations: 56.55 kB / 0.499 GB, free: 11.41 MB / 414.1 MB Notification: Performance of pre-optimization done (n=198): time 3.687e-06/0.5145, allocations: 0 / 0.499 GB, free: 11.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=218): time 0.02201/0.5365, allocations: 10 MB / 0.5088 GB, free: 1.297 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.314e-05/0.5366, allocations: 73.41 kB / 0.5088 GB, free: 1.211 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00464/0.5413, allocations: 2.518 MB / 0.5113 GB, free: 14.67 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004841/0.5417, allocations: 61.7 kB / 0.5113 GB, free: 14.6 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001564/0.5433, allocations: 1.662 MB / 0.513 GB, free: 12.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001142/0.5444, allocations: 0.7708 MB / 0.5137 GB, free: 12.15 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008083/0.5453, allocations: 412.5 kB / 0.5141 GB, free: 11.74 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.5454, allocations: 309.1 kB / 0.5144 GB, free: 11.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002297/0.5477, allocations: 1.297 MB / 0.5157 GB, free: 10.13 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002674/0.5504, allocations: 1.778 MB / 0.5174 GB, free: 8.168 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004943/0.5553, allocations: 3.208 MB / 0.5205 GB, free: 4.777 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.815e-05/0.5553, allocations: 4 kB / 0.5205 GB, free: 4.773 MB / 430.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007733/0.5631, allocations: 4.08 MB / 0.5245 GB, free: 0.668 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.9e-05/0.5631, allocations: 8 kB / 0.5245 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.951e-05/0.5631, allocations: 16.47 kB / 0.5246 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003002/0.5661, allocations: 0.8878 MB / 0.5254 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002379/0.5685, allocations: 0.5188 MB / 0.5259 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01193/0.5804, allocations: 9.483 MB / 0.5352 GB, free: 5.324 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002884/0.5833, allocations: 115.9 kB / 0.5353 GB, free: 5.211 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004353/0.5838, allocations: 87.98 kB / 0.5354 GB, free: 5.125 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.002988/0.5867, allocations: 1.218 MB / 0.5366 GB, free: 3.898 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009529/0.5877, allocations: 290.2 kB / 0.5369 GB, free: 3.613 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007423/0.5951, allocations: 3.699 MB / 0.5405 GB, free: 15.88 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.419e-05/0.5952, allocations: 20 kB / 0.5405 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-05/0.5952, allocations: 11.98 kB / 0.5405 GB, free: 15.85 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.508e-05/0.5952, allocations: 11.97 kB / 0.5405 GB, free: 15.84 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01798/0.6132, allocations: 8.006 MB / 0.5483 GB, free: 7.715 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.306e-05/0.6132, allocations: 4 kB / 0.5483 GB, free: 7.711 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001746/0.6149, allocations: 383.8 kB / 0.5487 GB, free: 7.336 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003268/0.6182, allocations: 0.9292 MB / 0.5496 GB, free: 6.391 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001919/0.6184, allocations: 59.92 kB / 0.5497 GB, free: 6.332 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01333/0.6317, allocations: 11.1 MB / 0.5605 GB, free: 10.67 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.855e-06/0.6317, allocations: 7.938 kB / 0.5605 GB, free: 10.66 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009977/0.6417, allocations: 5.498 MB / 0.5659 GB, free: 5.098 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002211/0.6439, allocations: 0.6476 MB / 0.5665 GB, free: 4.43 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006481/0.6446, allocations: 55.92 kB / 0.5666 GB, free: 4.375 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001483/0.646, allocations: 115.9 kB / 0.5667 GB, free: 4.262 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005139/0.6466, allocations: 173.7 kB / 0.5668 GB, free: 4.09 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001547/0.6467, allocations: 67.98 kB / 0.5669 GB, free: 4.023 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003158/0.6499, allocations: 1.739 MB / 0.5686 GB, free: 2.273 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6499, allocations: 3.938 kB / 0.5686 GB, free: 2.27 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003489/0.6534, allocations: 0.8007 MB / 0.5694 GB, free: 1.469 MB / 478.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.0104/0.6638, allocations: 6.204 MB / 0.5754 GB, free: 11.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006983/0.6708, allocations: 3.771 MB / 0.5791 GB, free: 7.348 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.6708, allocations: 0 / 0.5791 GB, free: 7.348 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004288/0.675, allocations: 2.39 MB / 0.5815 GB, free: 4.883 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004915/0.68, allocations: 0.7892 MB / 0.5822 GB, free: 4.102 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06043/0.7404, allocations: 29.6 MB / 0.6111 GB, free: 5.75 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003472/0.7439, allocations: 2.785 MB / 0.6139 GB, free: 2.938 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002457/0.7463, allocations: 0.679 MB / 0.6145 GB, free: 2.254 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002246/0.7486, allocations: 1.413 MB / 0.6159 GB, free: 0.8398 MB / 0.5137 GB Notification: Performance of SimCode: time 1.583e-06/0.7486, allocations: 0 / 0.6159 GB, free: 0.8398 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3522/1.101, allocations: 74.33 MB / 0.6885 GB, free: 121 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.06/17.16, allocations: 3.438 kB / 0.6885 GB, free: 121 MB / 0.5137 GB " [Timeout remaining time 643] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/Transformers/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 26.251644611125812]