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.001356/0.001356, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 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.001403/0.001403, allocations: 166.3 kB / 24.82 MB, free: 9.301 MB / 18.57 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 1.028/1.028, allocations: 177 MB / 205.1 MB, free: 5.477 MB / 186.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.152e-06/1.152e-06, allocations: 0 / 273.3 MB, free: 1.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.758e-05/1.874e-05, allocations: 2.312 kB / 273.3 MB, free: 1.199 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.008061/0.00808, allocations: 9.99 MB / 283.3 MB, free: 7.164 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005492/0.01357, allocations: 3.416 MB / 286.8 MB, free: 3.734 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001025/0.0146, allocations: 71.5 kB / 286.8 MB, free: 3.664 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001515/0.01611, allocations: 0.7645 MB / 287.6 MB, free: 2.895 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001896/0.01801, allocations: 0.9351 MB / 288.5 MB, free: 1.953 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009852/0.01899, allocations: 419.4 kB / 288.9 MB, free: 1.543 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1165/0.1355, allocations: 2.857 MB / 291.8 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001669/0.1372, allocations: 1.308 MB / 293.1 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002684/0.1399, allocations: 2.164 MB / 295.3 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001876/0.1418, allocations: 1.391 MB / 296.7 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006402/0.1424, allocations: 323.3 kB / 297 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00081/0.1432, allocations: 425.7 kB / 297.4 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007254/0.1439, allocations: 0.9454 MB / 298.3 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001271/0.1452, allocations: 1.017 MB / 299.3 MB, free: 15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002511/0.1477, allocations: 2.376 MB / 301.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1477, allocations: 2.094 kB / 301.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1477, allocations: 0 / 301.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.095e-05/0.1478, allocations: 1.75 kB / 301.7 MB, free: 14.14 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.003808/0.1516, allocations: 3.082 MB / 304.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.1516, allocations: 12.64 kB / 304.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000851/0.1525, allocations: 0.4957 MB / 305.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001657/0.1542, allocations: 1.498 MB / 306.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.953e-05/0.1542, allocations: 167.2 kB / 307 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002349/0.1545, allocations: 228 kB / 307.2 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001997/0.1565, allocations: 1.66 MB / 308.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.79e-05/0.1565, allocations: 7.703 kB / 308.9 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001493/0.1567, allocations: 91.34 kB / 309 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.211e-05/0.1568, allocations: 123.4 kB / 309.1 MB, free: 10.47 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.1579, allocations: 0.6554 MB / 309.7 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006834/0.1647, allocations: 7.262 MB / 317 MB, free: 3.914 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008378/0.1655, allocations: 0.6463 MB / 317.6 MB, free: 3.297 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006294/0.1662, allocations: 468.7 kB / 318.1 MB, free: 2.848 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001322/0.1663, allocations: 48.98 kB / 318.1 MB, free: 2.801 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/0.1663, allocations: 50.38 kB / 318.2 MB, free: 2.738 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 2.776e-06/0.1663, allocations: 0 / 318.2 MB, free: 2.738 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.004212/0.1705, allocations: 2.589 MB / 320.8 MB, free: 176 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.001e-05/0.1706, allocations: 68.34 kB / 320.9 MB, free: 96 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001188/0.1718, allocations: 1.254 MB / 322.1 MB, free: 15.01 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.164e-05/0.1718, allocations: 41.7 kB / 322.1 MB, free: 14.96 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007093/0.1725, allocations: 1.235 MB / 323.4 MB, free: 13.78 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002906/0.1728, allocations: 459.2 kB / 323.8 MB, free: 13.36 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003492/0.1732, allocations: 280.3 kB / 324.1 MB, free: 13.11 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.1733, allocations: 484.4 kB / 324.6 MB, free: 12.63 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003008/0.1736, allocations: 178.7 kB / 324.7 MB, free: 12.46 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006282/0.1742, allocations: 0.7779 MB / 325.5 MB, free: 11.47 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.1753, allocations: 1.093 MB / 326.6 MB, free: 10.21 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.1753, allocations: 4 kB / 326.6 MB, free: 10.21 MB / 282.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001835/0.1771, allocations: 1.289 MB / 327.9 MB, free: 8.996 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.1771, allocations: 16.03 kB / 327.9 MB, free: 8.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.1771, allocations: 12 kB / 327.9 MB, free: 8.969 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005981/0.1777, allocations: 255.1 kB / 328.2 MB, free: 8.715 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007888/0.1785, allocations: 304.5 kB / 328.5 MB, free: 8.438 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003934/0.1825, allocations: 6.493 MB / 335 MB, free: 1.699 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005968/0.1831, allocations: 55.94 kB / 335 MB, free: 1.645 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-05/0.1831, allocations: 51.98 kB / 335.1 MB, free: 1.594 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.0004084/0.1836, allocations: 257.8 kB / 335.3 MB, free: 1.352 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002626/0.1838, allocations: 210.9 kB / 335.5 MB, free: 1.145 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001529/0.1853, allocations: 1.024 MB / 336.6 MB, free: 112 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.1854, allocations: 12 kB / 336.6 MB, free: 100 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1854, allocations: 4 kB / 336.6 MB, free: 96 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.1854, allocations: 11.97 kB / 336.6 MB, free: 84 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003985/0.1894, allocations: 2.99 MB / 339.6 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.1894, allocations: 7.938 kB / 339.6 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005653/0.1899, allocations: 202 kB / 339.8 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006321/0.1906, allocations: 269.8 kB / 340.1 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.545e-05/0.1906, allocations: 31.98 kB / 340.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004572/0.1952, allocations: 8.2 MB / 348.3 MB, free: 4.262 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.1952, allocations: 7.375 kB / 348.3 MB, free: 4.258 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001958/0.1972, allocations: 1.528 MB / 349.8 MB, free: 2.676 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004122/0.1976, allocations: 270.4 kB / 350.1 MB, free: 2.414 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001444/0.1977, allocations: 31.98 kB / 350.1 MB, free: 2.383 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000492/0.1982, allocations: 43.98 kB / 350.2 MB, free: 2.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.1984, allocations: 104.3 kB / 350.3 MB, free: 2.242 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.01e-05/0.1984, allocations: 31.98 kB / 350.3 MB, free: 2.211 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000654/0.1991, allocations: 0.6866 MB / 351 MB, free: 1.582 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1991, allocations: 0 / 351 MB, free: 1.582 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001334/0.2004, allocations: 479.7 kB / 351.4 MB, free: 1.117 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.0002931/0.2007, allocations: 200.7 kB / 351.6 MB, free: 0.918 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.2023, allocations: 1.414 MB / 353.1 MB, free: 15.53 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2023, allocations: 0 / 353.1 MB, free: 15.53 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001105/0.2034, allocations: 1.201 MB / 354.3 MB, free: 14.3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.2045, allocations: 438.4 kB / 354.7 MB, free: 13.9 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004128/0.2086, allocations: 3.985 MB / 358.7 MB, free: 9.84 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004472/0.209, allocations: 0.5888 MB / 359.3 MB, free: 9.219 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004683/0.2095, allocations: 217.9 kB / 359.5 MB, free: 9 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006498/0.2102, allocations: 477.9 kB / 359.9 MB, free: 8.531 MB / 314.7 MB Notification: Performance of SimCode: time 6.62e-07/0.2102, allocations: 0 / 359.9 MB, free: 8.531 MB / 314.7 MB Notification: Performance of Templates: time 0.03045/0.2406, allocations: 26.23 MB / 386.2 MB, free: 14.78 MB / 346.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 -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.499684357084334]