Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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.00113/0.00113, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001148/0.002278, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0006698/0.0006698, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009076/0.001577, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 1.048/1.048, allocations: 173.4 MB / 185.8 MB, free: 8.988 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09203/1.14, allocations: 52.5 MB / 238.3 MB, free: 4.426 MB / 234.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.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.0.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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.744e-06/1.744e-06, allocations: 0 / 239.6 MB, free: 3.168 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.481e-05/2.655e-05, allocations: 6.312 kB / 239.6 MB, free: 3.16 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01204/0.01207, allocations: 10.07 MB / 249.6 MB, free: 9.047 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007041/0.01911, allocations: 3.488 MB / 253.1 MB, free: 5.547 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00108/0.02019, allocations: 75.5 kB / 253.2 MB, free: 5.473 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001527/0.02172, allocations: 0.784 MB / 254 MB, free: 4.684 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001856/0.02357, allocations: 0.9156 MB / 254.9 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007169/0.02429, allocations: 415.3 kB / 255.3 MB, free: 3.355 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002536/0.02683, allocations: 2.863 MB / 258.2 MB, free: 492 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00159/0.02842, allocations: 1.348 MB / 259.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002599/0.03102, allocations: 2.312 MB / 261.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001515/0.03253, allocations: 1.391 MB / 263.2 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003814/0.03291, allocations: 320 kB / 263.5 MB, free: 11.01 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00063/0.03354, allocations: 419.8 kB / 263.9 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006796/0.03422, allocations: 0.7715 MB / 264.7 MB, free: 9.824 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009474/0.03517, allocations: 0.8383 MB / 265.5 MB, free: 8.984 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002394/0.03756, allocations: 2.227 MB / 267.8 MB, free: 6.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.053e-05/0.03758, allocations: 0 / 267.8 MB, free: 6.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.03759, allocations: 0 / 267.8 MB, free: 6.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.801e-05/0.03766, allocations: 0 / 267.8 MB, free: 6.75 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.004016/0.04167, allocations: 3.332 MB / 271.1 MB, free: 3.375 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.855e-05/0.0417, allocations: 8.031 kB / 271.1 MB, free: 3.367 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000595/0.0423, allocations: 485.7 kB / 271.6 MB, free: 2.875 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001388/0.04368, allocations: 1.161 MB / 272.7 MB, free: 1.656 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.971e-05/0.04377, allocations: 164.8 kB / 272.9 MB, free: 1.492 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002119/0.04399, allocations: 224.3 kB / 273.1 MB, free: 1.273 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1078/0.1518, allocations: 1.688 MB / 274.8 MB, free: 23.82 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-05/0.1519, allocations: 8.344 kB / 274.8 MB, free: 23.82 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001273/0.152, allocations: 90.39 kB / 274.9 MB, free: 23.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001015/0.1521, allocations: 119.1 kB / 275 MB, free: 23.81 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001314/0.1534, allocations: 0.653 MB / 275.7 MB, free: 23.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007094/0.1605, allocations: 5.893 MB / 281.6 MB, free: 21.75 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008451/0.1614, allocations: 0.6635 MB / 282.2 MB, free: 21.64 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007572/0.1621, allocations: 432.7 kB / 282.7 MB, free: 21.63 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000244/0.1624, allocations: 59.58 kB / 282.7 MB, free: 21.63 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.711e-05/0.1624, allocations: 46.06 kB / 282.8 MB, free: 21.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 6.001e-06/0.1624, allocations: 0 / 282.8 MB, free: 21.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.004585/0.167, allocations: 2.581 MB / 285.3 MB, free: 21.11 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.339e-05/0.167, allocations: 68.42 kB / 285.4 MB, free: 21.05 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007751/0.1678, allocations: 1.049 MB / 286.5 MB, free: 20.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.831e-05/0.1679, allocations: 48.95 kB / 286.5 MB, free: 20.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003976/0.1683, allocations: 0.946 MB / 287.5 MB, free: 20.21 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001786/0.1684, allocations: 444.9 kB / 287.9 MB, free: 19.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002379/0.1687, allocations: 257.2 kB / 288.1 MB, free: 19.78 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.902e-05/0.1687, allocations: 304.5 kB / 288.4 MB, free: 19.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002447/0.169, allocations: 175.4 kB / 288.6 MB, free: 19.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003426/0.1693, allocations: 0.5753 MB / 289.2 MB, free: 18.97 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006111/0.1699, allocations: 0.9257 MB / 290.1 MB, free: 18.44 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.1699, allocations: 3.938 kB / 290.1 MB, free: 18.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001093/0.171, allocations: 1.047 MB / 291.2 MB, free: 18.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.171, allocations: 11.62 kB / 291.2 MB, free: 18.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.171, allocations: 18.97 kB / 291.2 MB, free: 18.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004401/0.1715, allocations: 240 kB / 291.4 MB, free: 18.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006386/0.1721, allocations: 356.6 kB / 291.8 MB, free: 18.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002176/0.1743, allocations: 4.768 MB / 296.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00043/0.1747, allocations: 52.59 kB / 296.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.209e-05/0.1748, allocations: 53.75 kB / 296.6 MB, free: 13.86 MB / 266.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.0002815/0.1751, allocations: 210.5 kB / 296.8 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.1752, allocations: 134.4 kB / 297 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009414/0.1762, allocations: 0.8695 MB / 297.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.1762, allocations: 15.66 kB / 297.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1762, allocations: 6.844 kB / 297.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.1762, allocations: 7.969 kB / 297.9 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003233/0.1794, allocations: 2.515 MB / 300.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.1794, allocations: 7.984 kB / 300.4 MB, free: 10.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007207/0.1801, allocations: 224.2 kB / 300.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004009/0.1805, allocations: 202.8 kB / 300.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008115/0.1814, allocations: 309.9 kB / 301.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.84e-05/0.1814, allocations: 31.97 kB / 301.2 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00279/0.1842, allocations: 5.95 MB / 307.1 MB, free: 3.914 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.758e-06/0.1842, allocations: 8.812 kB / 307.1 MB, free: 3.906 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.1855, allocations: 1.29 MB / 308.4 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.1856, allocations: 35.98 kB / 308.4 MB, free: 2.523 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000345/0.186, allocations: 39.98 kB / 308.5 MB, free: 2.484 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.1861, allocations: 104.7 kB / 308.6 MB, free: 2.383 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.094e-05/0.1862, allocations: 31.98 kB / 308.6 MB, free: 2.352 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000353/0.1865, allocations: 0.5209 MB / 309.1 MB, free: 1.891 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1865, allocations: 0 / 309.1 MB, free: 1.891 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009659/0.1875, allocations: 480.1 kB / 309.6 MB, free: 1.422 MB / 266.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.0002761/0.1878, allocations: 180.1 kB / 309.8 MB, free: 1.234 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001025/0.1888, allocations: 1.198 MB / 311 MB, free: 32 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.214e-05/0.1888, allocations: 27.44 kB / 311 MB, free: 8 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000925/0.1897, allocations: 0.9376 MB / 311.9 MB, free: 15.03 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/0.1909, allocations: 0.5408 MB / 312.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01431/0.2052, allocations: 3.967 MB / 316.4 MB, free: 10.48 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004696/0.2057, allocations: 0.534 MB / 317 MB, free: 9.918 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005454/0.2062, allocations: 221.9 kB / 317.2 MB, free: 9.695 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006403/0.2069, allocations: 415.1 kB / 317.6 MB, free: 9.281 MB / 282.7 MB Notification: Performance of SimCode: time 1.403e-06/0.2069, allocations: 0 / 317.6 MB, free: 9.281 MB / 282.7 MB Notification: Performance of Templates: time 0.03406/0.2409, allocations: 27.14 MB / 344.7 MB, free: 14.57 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.40703830961138]