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.0009869/0.0009869, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.000981/0.000981, allocations: 165.4 kB / 24.56 MB, free: 16 kB / 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.06/1.06, allocations: 177.1 MB / 205 MB, free: 5.289 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.042e-06/1.042e-06, allocations: 0 / 273 MB, free: 1.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.288e-05/1.392e-05, allocations: 6.312 kB / 273 MB, free: 1.371 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.008622/0.008635, allocations: 10.27 MB / 283.3 MB, free: 7.059 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004504/0.01314, allocations: 3.427 MB / 286.7 MB, free: 3.617 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006982/0.01384, allocations: 75.5 kB / 286.8 MB, free: 3.543 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00114/0.01498, allocations: 0.7606 MB / 287.5 MB, free: 2.777 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001836/0.01681, allocations: 0.9273 MB / 288.5 MB, free: 1.844 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007994/0.01761, allocations: 431.3 kB / 288.9 MB, free: 1.422 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1138/0.1314, allocations: 2.852 MB / 291.7 MB, free: 16.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002185/0.1336, allocations: 1.308 MB / 293 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003379/0.137, allocations: 2.155 MB / 295.2 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002424/0.1394, allocations: 1.387 MB / 296.6 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008997/0.1403, allocations: 323.7 kB / 296.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009754/0.1413, allocations: 435.5 kB / 297.3 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007806/0.1421, allocations: 0.9452 MB / 298.3 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001621/0.1437, allocations: 1.012 MB / 299.3 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002821/0.1465, allocations: 2.38 MB / 301.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1465, allocations: 1.406 kB / 301.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1465, allocations: 0 / 301.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.276e-05/0.1466, allocations: 0.6875 kB / 301.7 MB, free: 14.27 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.004065/0.1507, allocations: 3.15 MB / 304.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.1507, allocations: 10.09 kB / 304.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008405/0.1515, allocations: 0.5049 MB / 305.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001821/0.1534, allocations: 1.554 MB / 306.9 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001025/0.1535, allocations: 169.4 kB / 307 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002388/0.1537, allocations: 229.3 kB / 307.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002566/0.1563, allocations: 1.801 MB / 309.1 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.108e-05/0.1563, allocations: 16.67 kB / 309.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001557/0.1565, allocations: 89.45 kB / 309.2 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.543e-05/0.1566, allocations: 113.6 kB / 309.3 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001692/0.1583, allocations: 0.8251 MB / 310.1 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006407/0.1647, allocations: 7.348 MB / 317.5 MB, free: 3.105 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009509/0.1656, allocations: 0.7123 MB / 318.2 MB, free: 2.402 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000623/0.1662, allocations: 0.5059 MB / 318.7 MB, free: 1.898 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00015/0.1664, allocations: 55.17 kB / 318.7 MB, free: 1.848 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.1664, allocations: 53.48 kB / 318.8 MB, free: 1.785 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 2.925e-06/0.1664, allocations: 0 / 318.8 MB, free: 1.785 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.004559/0.171, allocations: 3.246 MB / 322 MB, free: 14.55 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.904e-05/0.171, allocations: 68.34 kB / 322.1 MB, free: 14.47 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001168/0.1722, allocations: 1.272 MB / 323.4 MB, free: 13.17 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.447e-05/0.1722, allocations: 45.7 kB / 323.4 MB, free: 13.12 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006864/0.1729, allocations: 1.222 MB / 324.6 MB, free: 11.89 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/0.1732, allocations: 449 kB / 325.1 MB, free: 11.46 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002731/0.1734, allocations: 277.1 kB / 325.3 MB, free: 11.18 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.371e-05/0.1735, allocations: 480.8 kB / 325.8 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003637/0.1739, allocations: 234.8 kB / 326 MB, free: 10.48 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006039/0.1745, allocations: 0.8348 MB / 326.9 MB, free: 9.402 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/0.1758, allocations: 1.187 MB / 328.1 MB, free: 8.02 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.1758, allocations: 4 kB / 328.1 MB, free: 8.016 MB / 282.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001732/0.1775, allocations: 1.414 MB / 329.5 MB, free: 6.672 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.1775, allocations: 12 kB / 329.5 MB, free: 6.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.1775, allocations: 14.89 kB / 329.5 MB, free: 6.648 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005286/0.1781, allocations: 252.7 kB / 329.8 MB, free: 6.387 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006568/0.1787, allocations: 343.5 kB / 330.1 MB, free: 6.074 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003593/0.1823, allocations: 6.652 MB / 336.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005747/0.1829, allocations: 87.89 kB / 336.8 MB, free: 15.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.177e-05/0.183, allocations: 64.14 kB / 336.9 MB, free: 14.96 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: 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.0003677/0.1833, allocations: 253.2 kB / 337.1 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002075/0.1835, allocations: 206.9 kB / 337.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001447/0.185, allocations: 1.13 MB / 338.5 MB, free: 13.37 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.185, allocations: 19.94 kB / 338.5 MB, free: 13.35 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.185, allocations: 4 kB / 338.5 MB, free: 13.35 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/0.185, allocations: 7.969 kB / 338.5 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003699/0.1887, allocations: 3.097 MB / 341.6 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.1887, allocations: 4 kB / 341.6 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004816/0.1892, allocations: 209.7 kB / 341.8 MB, free: 9.977 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000588/0.1898, allocations: 286.7 kB / 342.1 MB, free: 9.684 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.735e-05/0.1899, allocations: 31.98 kB / 342.1 MB, free: 9.652 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004543/0.1944, allocations: 8.371 MB / 350.5 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.1944, allocations: 15.03 kB / 350.5 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001905/0.1963, allocations: 1.677 MB / 352.2 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003462/0.1966, allocations: 282.7 kB / 352.5 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/0.1968, allocations: 35.98 kB / 352.5 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003926/0.1972, allocations: 67.94 kB / 352.6 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001528/0.1973, allocations: 104.6 kB / 352.7 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.016e-05/0.1974, allocations: 39.98 kB / 352.7 MB, free: 14.55 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006804/0.198, allocations: 0.7348 MB / 353.4 MB, free: 13.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.198, allocations: 0 / 353.4 MB, free: 13.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001024/0.1991, allocations: 483.9 kB / 353.9 MB, free: 13.35 MB / 314.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.0002776/0.1993, allocations: 192.8 kB / 354.1 MB, free: 13.16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001572/0.2009, allocations: 1.53 MB / 355.6 MB, free: 11.63 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.2009, allocations: 4 kB / 355.6 MB, free: 11.63 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.2022, allocations: 1.243 MB / 356.9 MB, free: 10.34 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.2033, allocations: 444.4 kB / 357.3 MB, free: 9.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004778/0.208, allocations: 4.018 MB / 361.3 MB, free: 5.812 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004616/0.2085, allocations: 0.5966 MB / 361.9 MB, free: 5.18 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006136/0.2091, allocations: 309.7 kB / 362.2 MB, free: 4.871 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002304/0.2094, allocations: 112.5 kB / 362.3 MB, free: 4.762 MB / 314.7 MB Notification: Performance of SimCode: time 9.82e-07/0.2094, allocations: 4 kB / 362.3 MB, free: 4.758 MB / 314.7 MB Notification: Performance of Templates: time 0.03208/0.2414, allocations: 25.72 MB / 388.1 MB, free: 11.45 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.5252703153528273]