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.0009339/0.0009339, allocations: 85.05 kB / 21.5 MB, free: 2.992 MB / 18.57 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.0009918/0.0009918, allocations: 145.7 kB / 24.89 MB, free: 8.727 MB / 18.57 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.006/1.006, allocations: 173.4 MB / 201.5 MB, free: 8.758 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|// aimc.i_0_s|aimc.idq_rr.[0-9,]+.|aimc.idq_sr.[0-9,]+.|aimc.is.[0-9,]+.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.[0-9,]+..i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer") translateModel(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|// aimc.i_0_s|aimc.idq_rr.[0-9,]+.|aimc.idq_sr.[0-9,]+.|aimc.is.[0-9,]+.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.[0-9,]+..i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 268.5 MB, free: 5.992 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.657e-05/2.819e-05, allocations: 6.25 kB / 268.5 MB, free: 5.984 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01038/0.0104, allocations: 12.42 MB / 280.9 MB, free: 9.504 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006569/0.01697, allocations: 4.271 MB / 285.2 MB, free: 5.219 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001001/0.01797, allocations: 99.38 kB / 285.3 MB, free: 5.121 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00146/0.01943, allocations: 0.9899 MB / 286.3 MB, free: 4.125 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002052/0.02148, allocations: 1.288 MB / 287.6 MB, free: 2.828 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006942/0.02218, allocations: 0.5187 MB / 288.1 MB, free: 2.309 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1087/0.1309, allocations: 4.795 MB / 292.9 MB, free: 16.4 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002745/0.1336, allocations: 2.07 MB / 295 MB, free: 16.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004865/0.1385, allocations: 3.353 MB / 298.3 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003521/0.142, allocations: 2.438 MB / 300.8 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001388/0.1434, allocations: 0.5429 MB / 301.3 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001225/0.1446, allocations: 0.6292 MB / 301.9 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008906/0.1455, allocations: 1.565 MB / 303.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001635/0.1472, allocations: 1.721 MB / 305.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002855/0.15, allocations: 4.019 MB / 309.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.15, allocations: 0 / 309.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.15, allocations: 6.344 kB / 309.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.694e-05/0.1501, allocations: 0 / 309.2 MB, free: 12.36 MB / 266.7 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.003883/0.154, allocations: 4.389 MB / 313.6 MB, free: 9.652 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.154, allocations: 12.92 kB / 313.6 MB, free: 9.641 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008431/0.1548, allocations: 0.6506 MB / 314.3 MB, free: 8.996 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001673/0.1565, allocations: 1.627 MB / 315.9 MB, free: 7.457 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.706e-05/0.1566, allocations: 266.4 kB / 316.2 MB, free: 7.199 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002948/0.1569, allocations: 362.7 kB / 316.5 MB, free: 6.852 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002379/0.1593, allocations: 2.844 MB / 319.4 MB, free: 4.039 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.534e-05/0.1593, allocations: 11.89 kB / 319.4 MB, free: 4.027 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000204/0.1595, allocations: 148.8 kB / 319.5 MB, free: 3.887 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.805e-05/0.1596, allocations: 183 kB / 319.7 MB, free: 3.707 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.161, allocations: 1.072 MB / 320.8 MB, free: 2.641 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009239/0.1702, allocations: 9.118 MB / 329.9 MB, free: 9.957 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/0.1716, allocations: 1.36 MB / 331.3 MB, free: 8.637 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.1727, allocations: 0.7717 MB / 332 MB, free: 7.891 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001681/0.1728, allocations: 61.98 kB / 332.1 MB, free: 7.828 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.1729, allocations: 52.56 kB / 332.1 MB, free: 7.77 MB / 282.7 MB Notification: Performance of pre-optimization done (n=198): time 3.557e-06/0.1729, allocations: 0 / 332.1 MB, free: 7.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=218): time 0.006467/0.1793, allocations: 3.985 MB / 336.1 MB, free: 3.855 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.1794, allocations: 77.41 kB / 336.2 MB, free: 3.766 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/0.1804, allocations: 1.502 MB / 337.7 MB, free: 2.512 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.971e-05/0.1805, allocations: 61.7 kB / 337.8 MB, free: 2.445 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005235/0.1811, allocations: 1.348 MB / 339.1 MB, free: 1.172 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004262/0.1815, allocations: 0.7651 MB / 339.9 MB, free: 464 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000392/0.1819, allocations: 396.9 kB / 340.3 MB, free: 112 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.047e-05/0.182, allocations: 301.1 kB / 340.6 MB, free: 15.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004043/0.1824, allocations: 291.8 kB / 340.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000571/0.1829, allocations: 0.7225 MB / 341.6 MB, free: 14.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.184, allocations: 1.283 MB / 342.9 MB, free: 13.31 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.1841, allocations: 4 kB / 342.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.001887/0.1859, allocations: 1.526 MB / 344.4 MB, free: 11.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.186, allocations: 15.94 kB / 344.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.186, allocations: 12.47 kB / 344.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001214/0.1872, allocations: 0.5737 MB / 345 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009887/0.1882, allocations: 496.4 kB / 345.5 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00375/0.1919, allocations: 5.662 MB / 351.1 MB, free: 4.961 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006634/0.1926, allocations: 75.98 kB / 351.2 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.959e-05/0.1927, allocations: 67.98 kB / 351.3 MB, free: 4.82 MB / 298.7 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.0006103/0.1933, allocations: 257.1 kB / 351.5 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003054/0.1936, allocations: 243.7 kB / 351.8 MB, free: 4.352 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001705/0.1953, allocations: 1.41 MB / 353.2 MB, free: 2.941 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.1953, allocations: 20 kB / 353.2 MB, free: 2.922 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.1953, allocations: 8 kB / 353.2 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.1953, allocations: 11.95 kB / 353.2 MB, free: 2.902 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004294/0.1996, allocations: 3.433 MB / 356.6 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.77e-06/0.1996, allocations: 4 kB / 356.7 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000777/0.2004, allocations: 357.9 kB / 357 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001362/0.2018, allocations: 0.6852 MB / 357.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.07e-05/0.2019, allocations: 55.97 kB / 357.7 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004106/0.206, allocations: 6.902 MB / 364.6 MB, free: 7.465 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.206, allocations: 4 kB / 364.6 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002261/0.2082, allocations: 1.946 MB / 366.6 MB, free: 5.504 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005561/0.2088, allocations: 326.3 kB / 366.9 MB, free: 5.184 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001952/0.209, allocations: 51.36 kB / 367 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005419/0.2095, allocations: 87.95 kB / 367 MB, free: 5.051 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002224/0.2098, allocations: 173.5 kB / 367.2 MB, free: 4.879 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.833e-05/0.2098, allocations: 43.98 kB / 367.3 MB, free: 4.836 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006225/0.2105, allocations: 0.7657 MB / 368 MB, free: 4.141 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2105, allocations: 0 / 368 MB, free: 4.141 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001622/0.2121, allocations: 0.789 MB / 368.8 MB, free: 3.352 MB / 314.7 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%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004234/0.2125, allocations: 230.2 kB / 369 MB, free: 3.156 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001854/0.2144, allocations: 1.716 MB / 370.8 MB, free: 1.484 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.058e-05/0.2144, allocations: 25.81 kB / 370.8 MB, free: 1.461 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001235/0.2156, allocations: 1.34 MB / 372.1 MB, free: 132 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/0.217, allocations: 0.6492 MB / 372.8 MB, free: 15.49 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007178/0.2242, allocations: 6.156 MB / 378.9 MB, free: 9.312 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007341/0.2249, allocations: 0.8655 MB / 379.8 MB, free: 8.426 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000737/0.2257, allocations: 305 kB / 380.1 MB, free: 8.121 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001056/0.2267, allocations: 0.6123 MB / 380.7 MB, free: 7.504 MB / 330.7 MB Notification: Performance of SimCode: time 6.01e-07/0.2267, allocations: 4 kB / 380.7 MB, free: 7.5 MB / 330.7 MB Notification: Performance of Templates: time 0.05793/0.2847, allocations: 42.25 MB / 423 MB, free: 13.97 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/Transformers/IMC_Transformer/IMC_Transformer.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.14179656887427]