Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.001302/0.001302, allocations: 80.8 kB / 21.5 MB, free: 2.996 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.001418/0.001418, allocations: 171.5 kB / 24.91 MB, free: 9.227 MB / 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 0.8965/0.8965, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.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.1.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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 0 / 273.5 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.809e-05/1.929e-05, allocations: 2.312 kB / 273.5 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.007296/0.007315, allocations: 9.366 MB / 282.8 MB, free: 7.895 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003413/0.01073, allocations: 3.193 MB / 286 MB, free: 4.691 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000412/0.01114, allocations: 71.5 kB / 286.1 MB, free: 4.621 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008878/0.01203, allocations: 0.683 MB / 286.8 MB, free: 3.934 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001065/0.01309, allocations: 0.8498 MB / 287.6 MB, free: 3.078 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005453/0.01364, allocations: 403.2 kB / 288 MB, free: 2.684 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001681/0.01532, allocations: 2.645 MB / 290.7 MB, free: 28 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.09696/0.1123, allocations: 1.29 MB / 291.9 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002477/0.1148, allocations: 2.017 MB / 294 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001714/0.1165, allocations: 1.322 MB / 295.3 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006002/0.1171, allocations: 305.9 kB / 295.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006891/0.1178, allocations: 407.7 kB / 296 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007035/0.1185, allocations: 0.8963 MB / 296.9 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001174/0.1196, allocations: 0.9554 MB / 297.8 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002202/0.1218, allocations: 2.261 MB / 300.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.1218, allocations: 1.375 kB / 300.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1218, allocations: 0 / 300.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.917e-05/0.1219, allocations: 0 / 300.1 MB, free: 15.38 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.003055/0.125, allocations: 2.656 MB / 302.8 MB, free: 13.92 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.125, allocations: 9.625 kB / 302.8 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006035/0.1256, allocations: 394.6 kB / 303.1 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00115/0.1268, allocations: 1.068 MB / 304.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.677e-05/0.1268, allocations: 163.9 kB / 304.4 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001965/0.127, allocations: 210.2 kB / 304.6 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/0.1284, allocations: 1.628 MB / 306.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.673e-05/0.1285, allocations: 11.2 kB / 306.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001204/0.1286, allocations: 84.06 kB / 306.3 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-05/0.1286, allocations: 105.6 kB / 306.4 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008022/0.1294, allocations: 0.6225 MB / 307 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00458/0.134, allocations: 5.482 MB / 312.5 MB, free: 8.961 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006613/0.1347, allocations: 0.6576 MB / 313.2 MB, free: 8.316 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004504/0.1351, allocations: 432.4 kB / 313.6 MB, free: 7.91 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001431/0.1353, allocations: 48.97 kB / 313.6 MB, free: 7.863 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.1353, allocations: 43.56 kB / 313.7 MB, free: 7.809 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 2.354e-06/0.1353, allocations: 0 / 313.7 MB, free: 7.809 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.003392/0.1387, allocations: 2.472 MB / 316.2 MB, free: 5.355 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.71e-05/0.1387, allocations: 64.16 kB / 316.2 MB, free: 5.285 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005077/0.1392, allocations: 0.9751 MB / 317.2 MB, free: 4.484 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.846e-05/0.1393, allocations: 41.7 kB / 317.2 MB, free: 4.438 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002037/0.1395, allocations: 0.8847 MB / 318.1 MB, free: 3.598 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001304/0.1396, allocations: 428.8 kB / 318.5 MB, free: 3.203 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/0.1398, allocations: 240.8 kB / 318.8 MB, free: 2.988 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.201e-05/0.1398, allocations: 360.9 kB / 319.1 MB, free: 2.656 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.14, allocations: 165.3 kB / 319.3 MB, free: 2.496 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002534/0.1403, allocations: 0.5233 MB / 319.8 MB, free: 1.848 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005253/0.1408, allocations: 0.8481 MB / 320.7 MB, free: 0.918 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.1408, allocations: 1.875 kB / 320.7 MB, free: 0.918 MB / 266.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.0009533/0.1418, allocations: 0.9779 MB / 321.6 MB, free: 4 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.555e-05/0.1418, allocations: 12.08 kB / 321.6 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.1418, allocations: 12 kB / 321.7 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004524/0.1423, allocations: 239 kB / 321.9 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005445/0.1428, allocations: 293.1 kB / 322.2 MB, free: 15.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002696/0.1455, allocations: 4.713 MB / 326.9 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003773/0.1459, allocations: 40 kB / 326.9 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.977e-05/0.1459, allocations: 51.98 kB / 327 MB, free: 10.48 MB / 282.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.0002975/0.1462, allocations: 201.2 kB / 327.2 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001653/0.1464, allocations: 127.8 kB / 327.3 MB, free: 10.17 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009838/0.1474, allocations: 0.8406 MB / 328.1 MB, free: 9.324 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.1474, allocations: 12 kB / 328.2 MB, free: 9.312 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1474, allocations: 12 kB / 328.2 MB, free: 9.301 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.1474, allocations: 8.016 kB / 328.2 MB, free: 9.293 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002482/0.1499, allocations: 2.38 MB / 330.6 MB, free: 7.148 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.1499, allocations: 4 kB / 330.6 MB, free: 7.145 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003945/0.1503, allocations: 178.5 kB / 330.7 MB, free: 6.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005253/0.1508, allocations: 304.1 kB / 331 MB, free: 6.68 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.081e-05/0.1509, allocations: 35.97 kB / 331.1 MB, free: 6.645 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002874/0.1537, allocations: 5.903 MB / 337 MB, free: 464 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.1537, allocations: 7.469 kB / 337 MB, free: 460 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001238/0.155, allocations: 1.233 MB / 338.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002702/0.1552, allocations: 194.9 kB / 338.4 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.1554, allocations: 32 kB / 338.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003179/0.1557, allocations: 43.97 kB / 338.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.1558, allocations: 100.4 kB / 338.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-05/0.1558, allocations: 31.98 kB / 338.6 MB, free: 14.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003553/0.1562, allocations: 477.2 kB / 339.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1562, allocations: 0 / 339.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008285/0.157, allocations: 455.9 kB / 339.5 MB, free: 13.93 MB / 298.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.0002409/0.1573, allocations: 177 kB / 339.7 MB, free: 13.77 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001088/0.1583, allocations: 1.139 MB / 340.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.847e-05/0.1584, allocations: 17.31 kB / 340.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007487/0.1591, allocations: 0.9233 MB / 341.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008291/0.1599, allocations: 371.5 kB / 342.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003664/0.1636, allocations: 3.598 MB / 345.7 MB, free: 7.723 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000386/0.164, allocations: 0.4934 MB / 346.2 MB, free: 7.199 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003898/0.1644, allocations: 196.7 kB / 346.4 MB, free: 7 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005514/0.1649, allocations: 377 kB / 346.8 MB, free: 6.633 MB / 298.7 MB Notification: Performance of SimCode: time 8.31e-07/0.1649, allocations: 0 / 346.8 MB, free: 6.633 MB / 298.7 MB Notification: Performance of Templates: time 0.02734/0.1923, allocations: 23.77 MB / 370.5 MB, free: 15.32 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.08032834995538]