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.001108/0.001108, allocations: 85.17 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.00109/0.00109, allocations: 147.4 kB / 24.89 MB, free: 8.742 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 0.9351/0.9351, allocations: 173.4 MB / 201.5 MB, free: 8.738 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.342e-06/1.342e-06, allocations: 0 / 268.6 MB, free: 5.949 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.379e-05/1.513e-05, allocations: 6.109 kB / 268.6 MB, free: 5.945 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01039/0.01041, allocations: 12.47 MB / 281 MB, free: 9.414 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005176/0.01558, allocations: 4.267 MB / 285.3 MB, free: 5.133 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006151/0.0162, allocations: 103.3 kB / 285.4 MB, free: 5.031 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001304/0.0175, allocations: 0.9977 MB / 286.4 MB, free: 4.027 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001746/0.01925, allocations: 1.288 MB / 287.7 MB, free: 2.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005467/0.01979, allocations: 0.5226 MB / 288.2 MB, free: 2.207 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1171/0.1369, allocations: 4.799 MB / 293 MB, free: 16.37 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002645/0.1396, allocations: 2.065 MB / 295.1 MB, free: 16.06 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004341/0.1439, allocations: 3.357 MB / 298.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003364/0.1473, allocations: 2.432 MB / 300.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001185/0.1485, allocations: 0.542 MB / 301.4 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001051/0.1495, allocations: 0.6338 MB / 302 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008368/0.1504, allocations: 1.562 MB / 303.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001416/0.1518, allocations: 1.722 MB / 305.3 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002599/0.1544, allocations: 4.022 MB / 309.3 MB, free: 12.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.1544, allocations: 3.047 kB / 309.3 MB, free: 12.31 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1544, allocations: 0 / 309.3 MB, free: 12.31 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.071e-05/0.1544, allocations: 0 / 309.3 MB, free: 12.31 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.003806/0.1582, allocations: 4.391 MB / 313.7 MB, free: 9.551 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.1583, allocations: 12.92 kB / 313.7 MB, free: 9.539 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009339/0.1592, allocations: 0.6597 MB / 314.4 MB, free: 8.887 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001713/0.1609, allocations: 1.62 MB / 316 MB, free: 7.348 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/0.161, allocations: 262.6 kB / 316.3 MB, free: 7.094 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003077/0.1613, allocations: 366.1 kB / 316.6 MB, free: 6.742 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002458/0.1638, allocations: 2.849 MB / 319.5 MB, free: 3.926 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.637e-05/0.1638, allocations: 7.891 kB / 319.5 MB, free: 3.918 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000203/0.1641, allocations: 146.7 kB / 319.6 MB, free: 3.777 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.614e-05/0.1641, allocations: 179.1 kB / 319.8 MB, free: 3.602 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001412/0.1656, allocations: 1.071 MB / 320.9 MB, free: 2.535 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009493/0.1751, allocations: 9.121 MB / 330 MB, free: 9.855 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.1763, allocations: 1.362 MB / 331.4 MB, free: 8.531 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001196/0.1775, allocations: 0.784 MB / 332.2 MB, free: 7.773 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001591/0.1777, allocations: 57.98 kB / 332.2 MB, free: 7.715 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.1777, allocations: 56.41 kB / 332.3 MB, free: 7.656 MB / 282.7 MB Notification: Performance of pre-optimization done (n=198): time 3.497e-06/0.1777, allocations: 0 / 332.3 MB, free: 7.656 MB / 282.7 MB Notification: Performance of matching and sorting (n=218): time 0.006875/0.1846, allocations: 3.964 MB / 336.2 MB, free: 3.754 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.1846, allocations: 77.41 kB / 336.3 MB, free: 3.664 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001141/0.1858, allocations: 1.508 MB / 337.8 MB, free: 2.406 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.803e-05/0.1859, allocations: 65.7 kB / 337.9 MB, free: 2.336 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005702/0.1865, allocations: 1.352 MB / 339.2 MB, free: 1.059 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004005/0.1869, allocations: 0.7649 MB / 340 MB, free: 352 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004011/0.1873, allocations: 391.2 kB / 340.4 MB, free: 4 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.325e-05/0.1873, allocations: 308.7 kB / 340.7 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004253/0.1878, allocations: 287.8 kB / 341 MB, free: 15.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005879/0.1883, allocations: 0.7168 MB / 341.7 MB, free: 14.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001462/0.1898, allocations: 1.289 MB / 343 MB, free: 13.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.194e-05/0.1898, allocations: 4 kB / 343 MB, free: 13.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.003223/0.193, allocations: 1.525 MB / 344.5 MB, free: 11.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.607e-05/0.1931, allocations: 12 kB / 344.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/0.1931, allocations: 15.94 kB / 344.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001796/0.1949, allocations: 0.5722 MB / 345.1 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001883/0.1968, allocations: 0.5874 MB / 345.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006271/0.203, allocations: 5.712 MB / 351.4 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001328/0.2044, allocations: 79.94 kB / 351.5 MB, free: 4.625 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001649/0.2045, allocations: 67.92 kB / 351.5 MB, free: 4.559 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.001128/0.2057, allocations: 255.5 kB / 351.8 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004451/0.2061, allocations: 235.7 kB / 352 MB, free: 4.098 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002632/0.2087, allocations: 1.406 MB / 353.4 MB, free: 2.691 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/0.2088, allocations: 20 kB / 353.4 MB, free: 2.672 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/0.2088, allocations: 8 kB / 353.4 MB, free: 2.664 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.016e-05/0.2088, allocations: 11.95 kB / 353.5 MB, free: 2.652 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005678/0.2145, allocations: 3.434 MB / 356.9 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.2145, allocations: 4 kB / 356.9 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.2156, allocations: 0.523 MB / 357.4 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001568/0.2172, allocations: 0.6108 MB / 358 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001294/0.2173, allocations: 55.97 kB / 358.1 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004626/0.222, allocations: 6.949 MB / 365 MB, free: 7.078 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.222, allocations: 11.28 kB / 365 MB, free: 7.07 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00246/0.2244, allocations: 1.955 MB / 367 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005313/0.225, allocations: 322.3 kB / 367.3 MB, free: 4.789 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001849/0.2251, allocations: 55.92 kB / 367.4 MB, free: 4.734 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005335/0.2257, allocations: 79.95 kB / 367.4 MB, free: 4.656 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002622/0.2259, allocations: 169.5 kB / 367.6 MB, free: 4.488 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.021e-05/0.226, allocations: 47.55 kB / 367.7 MB, free: 4.445 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006247/0.2266, allocations: 0.7602 MB / 368.4 MB, free: 3.75 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2266, allocations: 0 / 368.4 MB, free: 3.75 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001529/0.2282, allocations: 0.789 MB / 369.2 MB, free: 2.961 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.0004188/0.2286, allocations: 241.7 kB / 369.4 MB, free: 2.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001804/0.2304, allocations: 1.711 MB / 371.2 MB, free: 1.082 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.779e-05/0.2304, allocations: 33.53 kB / 371.2 MB, free: 1.055 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001199/0.2316, allocations: 1.339 MB / 372.5 MB, free: 15.72 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/0.2331, allocations: 0.639 MB / 373.2 MB, free: 15.1 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00701/0.2401, allocations: 6.153 MB / 379.3 MB, free: 8.922 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009159/0.241, allocations: 0.8617 MB / 380.2 MB, free: 8.039 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007823/0.2418, allocations: 301 kB / 380.5 MB, free: 7.738 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001121/0.2429, allocations: 0.6162 MB / 381.1 MB, free: 7.117 MB / 330.7 MB Notification: Performance of SimCode: time 1.122e-06/0.2429, allocations: 4 kB / 381.1 MB, free: 7.113 MB / 330.7 MB Notification: Performance of Templates: time 0.04889/0.2918, allocations: 42.36 MB / 423.5 MB, free: 13.48 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 -s gbode -gbm=radauIIA3 -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: 4.819114012643695]