Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001143/0.001143, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001518/0.002661, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001025/0.001025, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001407/0.002432, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9298/0.9298, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08359/1.013, allocations: 53.87 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.053e-05/1.204e-05, allocations: 2.312 kB / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01201/0.01203, allocations: 10.12 MB / 255.1 MB, free: 3.477 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005155/0.01718, allocations: 3.566 MB / 258.7 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006991/0.01788, allocations: 75.5 kB / 258.8 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001276/0.01916, allocations: 0.784 MB / 259.6 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001503/0.02066, allocations: 0.9079 MB / 260.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007401/0.0214, allocations: 435.2 kB / 260.9 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002481/0.02388, allocations: 2.878 MB / 263.8 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001452/0.02533, allocations: 1.34 MB / 265.1 MB, free: 9.379 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002546/0.02788, allocations: 2.328 MB / 267.4 MB, free: 7.027 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001533/0.02941, allocations: 1.391 MB / 268.8 MB, free: 5.633 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004103/0.02982, allocations: 324 kB / 269.2 MB, free: 5.316 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003707/0.03353, allocations: 431.8 kB / 269.6 MB, free: 4.895 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009347/0.03446, allocations: 0.7675 MB / 270.3 MB, free: 4.125 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009592/0.03542, allocations: 0.8383 MB / 271.2 MB, free: 3.285 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00548/0.0409, allocations: 2.235 MB / 273.4 MB, free: 1.043 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.365e-05/0.04091, allocations: 0 / 273.4 MB, free: 1.043 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.04092, allocations: 4 kB / 273.4 MB, free: 1.039 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.207e-05/0.04096, allocations: 0 / 273.4 MB, free: 1.039 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.1097/0.1506, allocations: 3.347 MB / 276.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.963e-05/0.1506, allocations: 10.33 kB / 276.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007274/0.1514, allocations: 488.3 kB / 277.3 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001464/0.1528, allocations: 1.169 MB / 278.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.864e-05/0.1529, allocations: 171.9 kB / 278.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002036/0.1531, allocations: 226 kB / 278.8 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001823/0.155, allocations: 1.69 MB / 280.5 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.353e-05/0.155, allocations: 14.5 kB / 280.5 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/0.1551, allocations: 87.22 kB / 280.6 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-05/0.1552, allocations: 116.9 kB / 280.7 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009834/0.1562, allocations: 0.6503 MB / 281.4 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005656/0.1618, allocations: 5.891 MB / 287.3 MB, free: 9.141 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007274/0.1626, allocations: 0.6444 MB / 287.9 MB, free: 9.047 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004969/0.1631, allocations: 437.3 kB / 288.3 MB, free: 9.031 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001385/0.1632, allocations: 55.94 kB / 288.4 MB, free: 9.031 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.1632, allocations: 44.91 kB / 288.4 MB, free: 8.992 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 2.685e-06/0.1632, allocations: 0 / 288.4 MB, free: 8.992 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.003625/0.1669, allocations: 2.586 MB / 291 MB, free: 8.371 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.878e-05/0.1669, allocations: 65.03 kB / 291.1 MB, free: 8.309 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005828/0.1675, allocations: 1.061 MB / 292.1 MB, free: 8.082 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.557e-05/0.1675, allocations: 47.8 kB / 292.2 MB, free: 8.035 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002369/0.1677, allocations: 0.948 MB / 293.1 MB, free: 7.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.1679, allocations: 440.1 kB / 293.6 MB, free: 7.086 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002081/0.1681, allocations: 263.5 kB / 293.8 MB, free: 6.977 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 1.894e-05/0.1681, allocations: 302 kB / 294.1 MB, free: 6.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/0.1683, allocations: 173.2 kB / 294.3 MB, free: 6.664 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002617/0.1686, allocations: 0.5875 MB / 294.9 MB, free: 6.172 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005803/0.1691, allocations: 0.9173 MB / 295.8 MB, free: 5.641 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.1691, allocations: 3.562 kB / 295.8 MB, free: 5.641 MB / 266.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001057/0.1702, allocations: 1.042 MB / 296.8 MB, free: 5.082 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.1702, allocations: 12 kB / 296.8 MB, free: 5.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.1702, allocations: 15.56 kB / 296.9 MB, free: 5.059 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004201/0.1707, allocations: 243 kB / 297.1 MB, free: 4.816 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006308/0.1713, allocations: 355.8 kB / 297.4 MB, free: 4.488 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002038/0.1733, allocations: 4.772 MB / 302.2 MB, free: 15.53 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004137/0.1737, allocations: 55.94 kB / 302.3 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.439e-05/0.1738, allocations: 52.16 kB / 302.3 MB, free: 15.42 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.0002864/0.1741, allocations: 208.9 kB / 302.5 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.1742, allocations: 135.9 kB / 302.7 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001027/0.1753, allocations: 0.8795 MB / 303.5 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.261e-06/0.1753, allocations: 12 kB / 303.6 MB, free: 14.2 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1753, allocations: 8 kB / 303.6 MB, free: 14.19 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.1753, allocations: 10.27 kB / 303.6 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002806/0.1781, allocations: 2.518 MB / 306.1 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.1781, allocations: 4 kB / 306.1 MB, free: 11.9 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004888/0.1786, allocations: 222.6 kB / 306.3 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002723/0.1789, allocations: 202.8 kB / 306.5 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005368/0.1794, allocations: 309.8 kB / 306.8 MB, free: 11.18 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.084e-05/0.1795, allocations: 35.97 kB / 306.8 MB, free: 11.15 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002894/0.1823, allocations: 5.946 MB / 312.8 MB, free: 4.93 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000231/0.1826, allocations: 7.375 kB / 312.8 MB, free: 4.926 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.1838, allocations: 1.297 MB / 314.1 MB, free: 3.586 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.184, allocations: 27.98 kB / 314.1 MB, free: 3.559 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003387/0.1843, allocations: 43.98 kB / 314.2 MB, free: 3.516 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.1844, allocations: 104.6 kB / 314.3 MB, free: 3.418 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.243e-05/0.1845, allocations: 31.98 kB / 314.3 MB, free: 3.387 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003705/0.1848, allocations: 0.5269 MB / 314.8 MB, free: 2.918 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1848, allocations: 0 / 314.8 MB, free: 2.918 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008434/0.1857, allocations: 481.9 kB / 315.3 MB, free: 2.449 MB / 282.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.0002415/0.1859, allocations: 180.9 kB / 315.5 MB, free: 2.277 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001086/0.187, allocations: 1.196 MB / 316.7 MB, free: 1.121 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.681e-05/0.187, allocations: 27.12 kB / 316.7 MB, free: 1.094 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00074/0.1878, allocations: 0.9418 MB / 317.6 MB, free: 144 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.1888, allocations: 0.5379 MB / 318.2 MB, free: 15.63 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01406/0.2028, allocations: 3.993 MB / 322.2 MB, free: 11.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000453/0.2033, allocations: 0.5263 MB / 322.7 MB, free: 11.03 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005237/0.2038, allocations: 217.9 kB / 322.9 MB, free: 10.81 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000622/0.2044, allocations: 424.6 kB / 323.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of SimCode: time 1.022e-06/0.2044, allocations: 4 kB / 323.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of Templates: time 0.03049/0.2349, allocations: 27.27 MB / 350.6 MB, free: 15.58 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.135053767822683]