Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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.0009363/0.0009363, allocations: 77.88 kB / 21.42 MB, free: 3.082 MB / 18.57 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.001277/0.001277, allocations: 170.6 kB / 24.82 MB, free: 8.957 MB / 18.57 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.003/1.003, allocations: 177.1 MB / 205.3 MB, free: 5.523 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.141e-05/1.308e-05, allocations: 2.312 kB / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.007672/0.007685, allocations: 9.985 MB / 283.4 MB, free: 7.273 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004244/0.01193, allocations: 3.408 MB / 286.8 MB, free: 3.852 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006071/0.01254, allocations: 71.5 kB / 286.9 MB, free: 3.781 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.01369, allocations: 0.7684 MB / 287.6 MB, free: 3.008 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001353/0.01505, allocations: 0.9234 MB / 288.6 MB, free: 2.078 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000544/0.01559, allocations: 427.3 kB / 289 MB, free: 1.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1005/0.1161, allocations: 2.855 MB / 291.8 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001487/0.1175, allocations: 1.306 MB / 293.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002307/0.1199, allocations: 2.156 MB / 295.3 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001637/0.1215, allocations: 1.39 MB / 296.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005122/0.122, allocations: 324.2 kB / 297 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006815/0.1227, allocations: 429.7 kB / 297.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006061/0.1233, allocations: 0.9399 MB / 298.4 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001025/0.1243, allocations: 1.02 MB / 299.4 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00188/0.1262, allocations: 2.375 MB / 301.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1262, allocations: 1.688 kB / 301.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1262, allocations: 0 / 301.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.828e-05/0.1263, allocations: 0.5938 kB / 301.8 MB, free: 13.96 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.003017/0.1293, allocations: 3.077 MB / 304.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.1293, allocations: 8.812 kB / 304.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006683/0.13, allocations: 0.5021 MB / 305.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001286/0.1313, allocations: 1.484 MB / 306.8 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.31e-05/0.1313, allocations: 177 kB / 307 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001958/0.1315, allocations: 225 kB / 307.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/0.1331, allocations: 1.658 MB / 308.9 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.171e-05/0.1331, allocations: 10 kB / 308.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.1333, allocations: 85.81 kB / 309 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.365e-05/0.1333, allocations: 118.9 kB / 309.1 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000871/0.1342, allocations: 0.659 MB / 309.7 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005493/0.1397, allocations: 7.271 MB / 317 MB, free: 3.922 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000677/0.1404, allocations: 0.6415 MB / 317.7 MB, free: 3.309 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005054/0.1409, allocations: 472.1 kB / 318.1 MB, free: 2.855 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000122/0.141, allocations: 62.86 kB / 318.2 MB, free: 2.801 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.017e-05/0.141, allocations: 46.39 kB / 318.2 MB, free: 2.742 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 2.244e-06/0.141, allocations: 0 / 318.2 MB, free: 2.742 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.003536/0.1446, allocations: 2.59 MB / 320.8 MB, free: 184 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.678e-05/0.1446, allocations: 72.33 kB / 320.9 MB, free: 100 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009949/0.1456, allocations: 1.235 MB / 322.1 MB, free: 15.03 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.709e-05/0.1456, allocations: 45.7 kB / 322.2 MB, free: 14.98 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006586/0.1463, allocations: 1.241 MB / 323.4 MB, free: 13.79 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002669/0.1466, allocations: 452.7 kB / 323.9 MB, free: 13.38 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002711/0.1468, allocations: 281.3 kB / 324.1 MB, free: 13.12 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.592e-05/0.1469, allocations: 480.8 kB / 324.6 MB, free: 12.65 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002414/0.1472, allocations: 175.8 kB / 324.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005056/0.1477, allocations: 0.7852 MB / 325.6 MB, free: 11.48 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008727/0.1485, allocations: 1.098 MB / 326.7 MB, free: 10.23 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.1486, allocations: 4 kB / 326.7 MB, free: 10.22 MB / 282.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001493/0.15, allocations: 1.282 MB / 327.9 MB, free: 9.016 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.1501, allocations: 14.5 kB / 328 MB, free: 9.004 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.1501, allocations: 12 kB / 328 MB, free: 8.992 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004799/0.1506, allocations: 258.2 kB / 328.2 MB, free: 8.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005866/0.1511, allocations: 308.7 kB / 328.5 MB, free: 8.449 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003286/0.1544, allocations: 6.478 MB / 335 MB, free: 1.727 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004664/0.1549, allocations: 55.94 kB / 335 MB, free: 1.672 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.618e-05/0.155, allocations: 55.98 kB / 335.1 MB, free: 1.617 MB / 282.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000366/0.1553, allocations: 248.3 kB / 335.3 MB, free: 1.383 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002098/0.1555, allocations: 206.9 kB / 335.5 MB, free: 1.18 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001261/0.1568, allocations: 1.036 MB / 336.6 MB, free: 136 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.126e-06/0.1568, allocations: 19.94 kB / 336.6 MB, free: 116 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.1568, allocations: 7.984 kB / 336.6 MB, free: 108 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.1568, allocations: 3.984 kB / 336.6 MB, free: 104 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003313/0.1601, allocations: 2.996 MB / 339.6 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.1601, allocations: 7.984 kB / 339.6 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004262/0.1606, allocations: 190.6 kB / 339.8 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005173/0.1611, allocations: 268.4 kB / 340.1 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.491e-05/0.1612, allocations: 31.98 kB / 340.1 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004017/0.1652, allocations: 8.204 MB / 348.3 MB, free: 4.281 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.1652, allocations: 11.38 kB / 348.3 MB, free: 4.273 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/0.1667, allocations: 1.525 MB / 349.8 MB, free: 2.695 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003399/0.1671, allocations: 265.3 kB / 350.1 MB, free: 2.438 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001147/0.1672, allocations: 35.98 kB / 350.1 MB, free: 2.402 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003662/0.1676, allocations: 43.97 kB / 350.2 MB, free: 2.359 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.1677, allocations: 108.6 kB / 350.3 MB, free: 2.258 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.344e-05/0.1677, allocations: 28 kB / 350.3 MB, free: 2.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005149/0.1682, allocations: 0.6821 MB / 351 MB, free: 1.609 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1682, allocations: 0 / 351 MB, free: 1.609 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00103/0.1693, allocations: 475.9 kB / 351.5 MB, free: 1.145 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,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.0002664/0.1695, allocations: 202 kB / 351.7 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001318/0.1709, allocations: 1.415 MB / 353.1 MB, free: 15.55 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.1709, allocations: 4.375 kB / 353.1 MB, free: 15.55 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009144/0.1718, allocations: 1.199 MB / 354.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.1728, allocations: 438.8 kB / 354.7 MB, free: 13.91 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004619/0.1775, allocations: 3.985 MB / 358.7 MB, free: 9.855 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004914/0.178, allocations: 0.5888 MB / 359.3 MB, free: 9.234 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005098/0.1785, allocations: 221.8 kB / 359.5 MB, free: 9.012 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000692/0.1792, allocations: 477.9 kB / 360 MB, free: 8.543 MB / 314.7 MB Notification: Performance of SimCode: time 5.71e-07/0.1792, allocations: 0 / 360 MB, free: 8.543 MB / 314.7 MB Notification: Performance of Templates: time 0.03228/0.2114, allocations: 26.22 MB / 386.2 MB, free: 14.82 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.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: 3.4825285179540515]