Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.001304/0.001304, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001/0.001, allocations: 141.2 kB / 24.89 MB, free: 9.211 MB / 18.57 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 0.8909/0.8909, allocations: 173.4 MB / 201.5 MB, free: 9.195 MB / 186.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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 268.5 MB, free: 6.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.331e-05/2.493e-05, allocations: 2.312 kB / 268.5 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.009952/0.009977, allocations: 9.332 MB / 277.8 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004682/0.01466, allocations: 3.142 MB / 281 MB, free: 9.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006615/0.01532, allocations: 71.56 kB / 281 MB, free: 9.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00118/0.0165, allocations: 0.6674 MB / 281.7 MB, free: 8.918 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001496/0.018, allocations: 0.8537 MB / 282.5 MB, free: 8.059 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005951/0.01859, allocations: 391.3 kB / 282.9 MB, free: 7.676 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002064/0.02065, allocations: 2.633 MB / 285.6 MB, free: 5.031 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001322/0.02198, allocations: 1.311 MB / 286.9 MB, free: 3.633 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001968/0.02394, allocations: 2.004 MB / 288.9 MB, free: 1.625 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00138/0.02532, allocations: 1.321 MB / 290.2 MB, free: 308 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003495/0.02567, allocations: 308 kB / 290.5 MB, free: 0 / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1027/0.1284, allocations: 395.7 kB / 290.9 MB, free: 19.33 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006389/0.129, allocations: 0.8943 MB / 291.8 MB, free: 19.33 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001077/0.1301, allocations: 0.9567 MB / 292.7 MB, free: 19.33 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002196/0.1323, allocations: 2.251 MB / 295 MB, free: 19.13 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.1323, allocations: 1.094 kB / 295 MB, free: 19.13 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1323, allocations: 0 / 295 MB, free: 19.13 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.82e-05/0.1324, allocations: 0 / 295 MB, free: 19.13 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.0031/0.1355, allocations: 2.652 MB / 297.6 MB, free: 17.99 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.861e-05/0.1355, allocations: 10.27 kB / 297.6 MB, free: 17.99 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000673/0.1362, allocations: 379.9 kB / 298 MB, free: 17.99 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001363/0.1375, allocations: 1.066 MB / 299.1 MB, free: 17.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.901e-05/0.1376, allocations: 160.2 kB / 299.2 MB, free: 17.56 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002378/0.1379, allocations: 215.8 kB / 299.4 MB, free: 17.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00188/0.1397, allocations: 1.62 MB / 301.1 MB, free: 17.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.309e-05/0.1398, allocations: 10.02 kB / 301.1 MB, free: 17.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001368/0.1399, allocations: 85.5 kB / 301.2 MB, free: 17.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.439e-05/0.14, allocations: 108.7 kB / 301.3 MB, free: 17.2 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.141, allocations: 0.6209 MB / 301.9 MB, free: 17.1 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004928/0.1459, allocations: 5.48 MB / 307.4 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006638/0.1466, allocations: 0.6673 MB / 308 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004451/0.147, allocations: 422 kB / 308.4 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001238/0.1472, allocations: 62.53 kB / 308.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.1472, allocations: 47.83 kB / 308.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 2.345e-06/0.1472, allocations: 0 / 308.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.003533/0.1507, allocations: 2.453 MB / 311 MB, free: 13.38 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.635e-05/0.1507, allocations: 61.88 kB / 311.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005235/0.1512, allocations: 0.9621 MB / 312 MB, free: 13.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.069e-05/0.1513, allocations: 48.83 kB / 312.1 MB, free: 13.06 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/0.1515, allocations: 0.8799 MB / 313 MB, free: 12.44 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001389/0.1517, allocations: 432.7 kB / 313.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001966/0.1519, allocations: 239.6 kB / 313.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.466e-05/0.1519, allocations: 364 kB / 314 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/0.1521, allocations: 162.8 kB / 314.1 MB, free: 11.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002557/0.1523, allocations: 0.5324 MB / 314.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005577/0.1529, allocations: 0.8441 MB / 315.5 MB, free: 9.855 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1529, allocations: 0 / 315.5 MB, free: 9.855 MB / 266.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.0009668/0.1539, allocations: 0.9761 MB / 316.5 MB, free: 8.945 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.1539, allocations: 12 kB / 316.5 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.1539, allocations: 15 kB / 316.5 MB, free: 8.922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000403/0.1543, allocations: 239.9 kB / 316.7 MB, free: 8.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005918/0.1549, allocations: 286 kB / 317 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002732/0.1576, allocations: 4.721 MB / 321.7 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004583/0.1581, allocations: 43.98 kB / 321.8 MB, free: 3.477 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.258e-05/0.1581, allocations: 44 kB / 321.8 MB, free: 3.434 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.0002944/0.1584, allocations: 201.6 kB / 322 MB, free: 3.246 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001598/0.1586, allocations: 135.8 kB / 322.2 MB, free: 3.113 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009089/0.1595, allocations: 0.84 MB / 323 MB, free: 2.266 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.1595, allocations: 12 kB / 323 MB, free: 2.254 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1595, allocations: 4 kB / 323 MB, free: 2.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.1595, allocations: 3.984 kB / 323 MB, free: 2.246 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002446/0.162, allocations: 2.385 MB / 325.4 MB, free: 92 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.162, allocations: 7.016 kB / 325.4 MB, free: 88 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004214/0.1624, allocations: 183 kB / 325.6 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005942/0.163, allocations: 300.5 kB / 325.9 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.047e-05/0.1631, allocations: 35.98 kB / 325.9 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003368/0.1664, allocations: 5.886 MB / 331.8 MB, free: 9.422 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.1664, allocations: 10.53 kB / 331.8 MB, free: 9.414 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001302/0.1677, allocations: 1.239 MB / 333.1 MB, free: 8.137 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002789/0.168, allocations: 194.6 kB / 333.2 MB, free: 7.949 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.1681, allocations: 32 kB / 333.3 MB, free: 7.918 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003282/0.1684, allocations: 47.97 kB / 333.3 MB, free: 7.871 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.1686, allocations: 95.95 kB / 333.4 MB, free: 7.781 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.141e-05/0.1686, allocations: 27.98 kB / 333.4 MB, free: 7.754 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003689/0.169, allocations: 485.3 kB / 333.9 MB, free: 7.332 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.169, allocations: 0 / 333.9 MB, free: 7.332 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009439/0.1699, allocations: 447.9 kB / 334.4 MB, free: 6.895 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.0002573/0.1702, allocations: 180.3 kB / 334.5 MB, free: 6.727 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.1713, allocations: 1.137 MB / 335.7 MB, free: 5.613 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.052e-05/0.1713, allocations: 16.5 kB / 335.7 MB, free: 5.598 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007722/0.1721, allocations: 0.9397 MB / 336.6 MB, free: 4.652 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008359/0.1729, allocations: 357.2 kB / 337 MB, free: 4.316 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003927/0.1769, allocations: 3.582 MB / 340.6 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.1773, allocations: 0.5012 MB / 341.1 MB, free: 152 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004292/0.1777, allocations: 196.7 kB / 341.2 MB, free: 15.95 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005465/0.1782, allocations: 373 kB / 341.6 MB, free: 15.59 MB / 298.7 MB Notification: Performance of SimCode: time 7.32e-07/0.1782, allocations: 0 / 341.6 MB, free: 15.59 MB / 298.7 MB Notification: Performance of Templates: time 0.02754/0.2058, allocations: 23.65 MB / 365.3 MB, free: 8.379 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_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.291336161084473]