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.001746/0.001746, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002215/0.002215, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.462/1.462, allocations: 230.6 MB / 257.5 MB, free: 8 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.001606/0.001606, allocations: 47.92 kB / 377.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2656, allocations: 53.36 MB / 431.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01611/0.2817, allocations: 13.03 MB / 444.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009214/0.2909, allocations: 4.284 MB / 448.5 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002838/0.2938, allocations: 99.31 kB / 448.6 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00317/0.2969, allocations: 1.029 MB / 449.6 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004116/0.301, allocations: 1.247 MB / 450.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001406/0.3024, allocations: 0.5382 MB / 451.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006213/0.3087, allocations: 4.653 MB / 456.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003207/0.3119, allocations: 2.078 MB / 458.1 MB, free: 11.74 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004271/0.3161, allocations: 2.18 MB / 460.3 MB, free: 9.562 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004552/0.3207, allocations: 2.631 MB / 462.9 MB, free: 6.922 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001102/0.3218, allocations: 0.5508 MB / 463.5 MB, free: 6.371 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001634/0.3234, allocations: 0.66 MB / 464.2 MB, free: 5.711 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001628/0.3251, allocations: 1.535 MB / 465.7 MB, free: 4.172 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003302/0.3284, allocations: 2.493 MB / 468.2 MB, free: 1.668 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00883/0.3372, allocations: 7.455 MB / 475.6 MB, free: 10.19 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.3372, allocations: 4 kB / 475.6 MB, free: 10.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3372, allocations: 3.938 kB / 475.6 MB, free: 10.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001958/0.3374, allocations: 0 / 475.6 MB, free: 10.18 MB / 382.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.01113/0.3485, allocations: 4.748 MB / 480.4 MB, free: 5.375 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.3486, allocations: 16.02 kB / 480.4 MB, free: 5.359 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007604/0.3493, allocations: 0.4981 MB / 480.9 MB, free: 4.852 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001633/0.351, allocations: 0.5487 MB / 481.5 MB, free: 4.301 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005051/0.356, allocations: 2.54 MB / 484 MB, free: 1.691 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002382/0.3563, allocations: 271 kB / 484.3 MB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005983/0.3568, allocations: 351.9 kB / 484.6 MB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009123/0.366, allocations: 5.036 MB / 489.6 MB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.044e-05/0.3661, allocations: 7.953 kB / 489.7 MB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003236/0.3664, allocations: 140 kB / 489.8 MB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000197/0.3666, allocations: 183 kB / 490 MB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007837/0.3744, allocations: 4.302 MB / 494.3 MB, free: 7.348 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02933/0.4037, allocations: 14.58 MB / 0.4969 GB, free: 8.426 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00493/0.4087, allocations: 2.698 MB / 0.4996 GB, free: 5.766 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003774/0.4124, allocations: 1.881 MB / 0.5014 GB, free: 3.887 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003105/0.4128, allocations: 54.52 kB / 0.5014 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.104e-05/0.4128, allocations: 64.48 kB / 0.5015 GB, free: 3.762 MB / 414.1 MB Notification: Performance of pre-optimization done (n=198): time 3.767e-06/0.4128, allocations: 0 / 0.5015 GB, free: 3.762 MB / 414.1 MB Notification: Performance of matching and sorting (n=218): time 0.02174/0.4346, allocations: 9.609 MB / 0.5109 GB, free: 10.14 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.048e-05/0.4346, allocations: 81.34 kB / 0.511 GB, free: 10.04 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005102/0.4397, allocations: 2.514 MB / 0.5134 GB, free: 7.508 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002483/0.44, allocations: 61.7 kB / 0.5135 GB, free: 7.441 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001509/0.4415, allocations: 1.67 MB / 0.5151 GB, free: 5.754 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008426/0.4423, allocations: 0.7591 MB / 0.5159 GB, free: 4.988 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009294/0.4433, allocations: 424.4 kB / 0.5163 GB, free: 4.566 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.4434, allocations: 305.1 kB / 0.5165 GB, free: 4.266 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002332/0.4457, allocations: 1.297 MB / 0.5178 GB, free: 2.965 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0027/0.4484, allocations: 1.77 MB / 0.5195 GB, free: 1.008 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005578/0.454, allocations: 3.227 MB / 0.5227 GB, free: 13.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.916e-05/0.454, allocations: 4 kB / 0.5227 GB, free: 13.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.008206/0.4622, allocations: 4.061 MB / 0.5267 GB, free: 9.504 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.56e-05/0.4623, allocations: 12 kB / 0.5267 GB, free: 9.492 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.088e-05/0.4623, allocations: 12.47 kB / 0.5267 GB, free: 9.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003025/0.4653, allocations: 0.8989 MB / 0.5276 GB, free: 8.566 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002212/0.4676, allocations: 0.5188 MB / 0.5281 GB, free: 8.047 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2484/0.7159, allocations: 9.168 MB / 0.537 GB, free: 96.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002156/0.7181, allocations: 128.2 kB / 0.5371 GB, free: 96.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002118/0.7183, allocations: 87.25 kB / 0.5372 GB, free: 96.3 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.002144/0.7204, allocations: 1.216 MB / 0.5384 GB, free: 96.19 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006797/0.7211, allocations: 288.9 kB / 0.5387 GB, free: 96.19 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006494/0.7276, allocations: 3.702 MB / 0.5423 GB, free: 95.01 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.782e-05/0.7276, allocations: 20.22 kB / 0.5423 GB, free: 95.01 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.282e-05/0.7277, allocations: 7.344 kB / 0.5423 GB, free: 95.01 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.123e-05/0.7277, allocations: 14.89 kB / 0.5424 GB, free: 95 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01256/0.7402, allocations: 7.989 MB / 0.5502 GB, free: 91.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.7403, allocations: 3.625 kB / 0.5502 GB, free: 91.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001473/0.7417, allocations: 385 kB / 0.5505 GB, free: 91.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00278/0.7445, allocations: 0.9311 MB / 0.5514 GB, free: 91.69 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001556/0.7447, allocations: 56.98 kB / 0.5515 GB, free: 91.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008982/0.7536, allocations: 10.69 MB / 0.5619 GB, free: 82.58 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.7536, allocations: 4 kB / 0.5619 GB, free: 82.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007039/0.7607, allocations: 5.502 MB / 0.5673 GB, free: 77.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001788/0.7625, allocations: 0.5797 MB / 0.5679 GB, free: 76.72 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000403/0.7629, allocations: 51.98 kB / 0.5679 GB, free: 76.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/0.7642, allocations: 115.9 kB / 0.568 GB, free: 76.55 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003945/0.7645, allocations: 189.6 kB / 0.5682 GB, free: 76.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.7647, allocations: 59.98 kB / 0.5683 GB, free: 76.31 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002104/0.7668, allocations: 1.739 MB / 0.57 GB, free: 74.56 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7668, allocations: 4 kB / 0.57 GB, free: 74.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002459/0.7692, allocations: 0.8005 MB / 0.5708 GB, free: 73.76 MB / 446.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.006965/0.7762, allocations: 6.194 MB / 0.5768 GB, free: 67.51 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004949/0.7811, allocations: 3.625 MB / 0.5803 GB, free: 63.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.752e-06/0.7811, allocations: 4.062 kB / 0.5803 GB, free: 63.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002916/0.7841, allocations: 2.31 MB / 0.5826 GB, free: 61.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003639/0.7877, allocations: 0.7823 MB / 0.5834 GB, free: 60.71 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03762/0.8253, allocations: 29.66 MB / 0.6123 GB, free: 30.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00207/0.8274, allocations: 2.778 MB / 0.615 GB, free: 27.54 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001861/0.8292, allocations: 0.6829 MB / 0.6157 GB, free: 26.85 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001475/0.8307, allocations: 1.417 MB / 0.6171 GB, free: 25.43 MB / 446.1 MB Notification: Performance of SimCode: time 1.472e-06/0.8307, allocations: 0 / 0.6171 GB, free: 25.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1745/1.005, allocations: 76.2 MB / 0.6915 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.4/18.41, allocations: 3.938 kB / 0.6915 GB, free: 13.92 MB / 0.4981 GB " [Timeout remaining time 641] (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: 27.549099758034572]