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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001803/0.001803, allocations: 125 kB / 17.79 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001966/0.001966, allocations: 190.9 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 225.6 MB / 249.1 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001694/0.001694, allocations: 43.92 kB / 365.7 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.111, allocations: 52.15 MB / 417.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.0165/0.1275, allocations: 12.94 MB / 430.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009303/0.1368, allocations: 4.195 MB / 435 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002418/0.1392, allocations: 79.69 kB / 435 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003317/0.1426, allocations: 1.017 MB / 436.1 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004344/0.1469, allocations: 1.22 MB / 437.3 MB, free: 8.984 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001756/0.1487, allocations: 0.5149 MB / 437.8 MB, free: 8.469 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006591/0.1553, allocations: 4.645 MB / 442.4 MB, free: 3.809 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005175/0.1604, allocations: 2.706 MB / 445.1 MB, free: 1.035 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2051/0.3656, allocations: 2.13 MB / 447.3 MB, free: 10.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003472/0.369, allocations: 2.621 MB / 449.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009406/0.37, allocations: 0.5536 MB / 450.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001593/0.3716, allocations: 0.6399 MB / 451.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001513/0.3731, allocations: 1.536 MB / 452.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00431/0.3774, allocations: 2.482 MB / 455.1 MB, free: 9.438 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0103/0.3877, allocations: 7.441 MB / 462.5 MB, free: 8.574 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.3877, allocations: 1.125 kB / 462.5 MB, free: 8.574 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3877, allocations: 2.969 kB / 462.5 MB, free: 8.574 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002301/0.3879, allocations: 0 / 462.5 MB, free: 8.574 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.01232/0.4003, allocations: 4.801 MB / 467.3 MB, free: 6.301 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.625e-05/0.4003, allocations: 10.31 kB / 467.4 MB, free: 6.301 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008063/0.4011, allocations: 0.5014 MB / 467.9 MB, free: 6.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001559/0.4027, allocations: 0.5182 MB / 468.4 MB, free: 5.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005541/0.4082, allocations: 2.585 MB / 471 MB, free: 4.133 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002041/0.4084, allocations: 270.2 kB / 471.2 MB, free: 4.012 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006804/0.4091, allocations: 358.3 kB / 471.6 MB, free: 3.887 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008939/0.4181, allocations: 5.031 MB / 476.6 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.689e-05/0.4181, allocations: 6.578 kB / 476.6 MB, free: 0.957 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003552/0.4185, allocations: 146.4 kB / 476.8 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002085/0.4187, allocations: 182.8 kB / 476.9 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007747/0.4265, allocations: 4.295 MB / 481.2 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02565/0.4521, allocations: 14.75 MB / 496 MB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004878/0.457, allocations: 4.06 MB / 0.4883 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003412/0.4604, allocations: 1.873 MB / 0.4902 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003199/0.4607, allocations: 134.6 kB / 0.4903 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.596e-05/0.4608, allocations: 56.56 kB / 0.4903 GB, free: 13.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=198): time 4.008e-06/0.4608, allocations: 0 / 0.4903 GB, free: 13.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=218): time 0.02227/0.483, allocations: 9.996 MB / 0.5001 GB, free: 3.391 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.26e-05/0.4831, allocations: 81.41 kB / 0.5002 GB, free: 3.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006126/0.4893, allocations: 2.498 MB / 0.5026 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004958/0.4898, allocations: 61.7 kB / 0.5027 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001644/0.4914, allocations: 1.656 MB / 0.5043 GB, free: 15.04 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001109/0.4925, allocations: 0.7677 MB / 0.505 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001311/0.4938, allocations: 424.4 kB / 0.5054 GB, free: 13.86 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.494, allocations: 301.1 kB / 0.5057 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002439/0.4964, allocations: 1.297 MB / 0.507 GB, free: 12.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002906/0.4993, allocations: 1.78 MB / 0.5087 GB, free: 10.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005395/0.5047, allocations: 3.217 MB / 0.5119 GB, free: 6.965 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.046e-05/0.5047, allocations: 4 kB / 0.5119 GB, free: 6.961 MB / 414.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.008341/0.5131, allocations: 4.059 MB / 0.5158 GB, free: 2.977 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.205e-05/0.5131, allocations: 12.03 kB / 0.5159 GB, free: 2.965 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.087e-05/0.5131, allocations: 16 kB / 0.5159 GB, free: 2.949 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002963/0.5161, allocations: 0.8885 MB / 0.5167 GB, free: 2.051 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002095/0.5182, allocations: 0.5251 MB / 0.5173 GB, free: 1.555 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01193/0.5301, allocations: 9.491 MB / 0.5265 GB, free: 7.695 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00238/0.5325, allocations: 115.9 kB / 0.5266 GB, free: 7.582 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004315/0.5329, allocations: 87.98 kB / 0.5267 GB, free: 7.496 MB / 430.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.002973/0.5359, allocations: 1.212 MB / 0.5279 GB, free: 6.305 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000957/0.5368, allocations: 286.2 kB / 0.5282 GB, free: 6.023 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007812/0.5447, allocations: 3.702 MB / 0.5318 GB, free: 2.316 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.076e-05/0.5447, allocations: 20 kB / 0.5318 GB, free: 2.297 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.632e-05/0.5447, allocations: 8 kB / 0.5318 GB, free: 2.289 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.621e-05/0.5447, allocations: 11.95 kB / 0.5318 GB, free: 2.277 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01995/0.5647, allocations: 7.994 MB / 0.5396 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.886e-05/0.5647, allocations: 11.97 kB / 0.5396 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001787/0.5665, allocations: 382.1 kB / 0.54 GB, free: 9.902 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003559/0.57, allocations: 0.9303 MB / 0.5409 GB, free: 8.961 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004026/0.5704, allocations: 55.97 kB / 0.541 GB, free: 8.906 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01464/0.5851, allocations: 11.1 MB / 0.5518 GB, free: 13.29 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.5851, allocations: 4 kB / 0.5518 GB, free: 13.29 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01152/0.5966, allocations: 5.515 MB / 0.5572 GB, free: 7.734 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002705/0.5993, allocations: 0.6435 MB / 0.5578 GB, free: 7.07 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001183/0.6005, allocations: 51.98 kB / 0.5579 GB, free: 7.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002255/0.6028, allocations: 119.9 kB / 0.558 GB, free: 6.902 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006667/0.6034, allocations: 180.3 kB / 0.5582 GB, free: 6.727 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002608/0.6037, allocations: 59.98 kB / 0.5582 GB, free: 6.668 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004578/0.6083, allocations: 1.727 MB / 0.5599 GB, free: 4.93 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6083, allocations: 3.938 kB / 0.5599 GB, free: 4.926 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004593/0.6129, allocations: 0.7969 MB / 0.5607 GB, free: 4.129 MB / 462.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.01188/0.6247, allocations: 6.197 MB / 0.5667 GB, free: 13.91 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007306/0.632, allocations: 3.767 MB / 0.5704 GB, free: 10.12 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/0.6321, allocations: 8 kB / 0.5704 GB, free: 10.11 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004368/0.6364, allocations: 2.387 MB / 0.5728 GB, free: 7.691 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005927/0.6423, allocations: 0.7927 MB / 0.5735 GB, free: 6.91 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06786/0.7102, allocations: 29.55 MB / 0.6024 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004437/0.7146, allocations: 2.773 MB / 0.6051 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002734/0.7174, allocations: 0.6788 MB / 0.6058 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00288/0.7203, allocations: 1.405 MB / 0.6071 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of SimCode: time 1.402e-06/0.7203, allocations: 0 / 0.6071 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.36/1.08, allocations: 74.11 MB / 0.6795 GB, free: 144.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.62/16.7, allocations: 14.19 kB / 0.6795 GB, free: 144.7 MB / 0.5137 GB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 25.67392680887133]