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.0007128/0.0007128, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001/0.001713, allocations: 445.8 kB / 10.44 MB, free: 256 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.0006075/0.0006075, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009002/0.001508, allocations: 475.6 kB / 11.8 MB, free: 2.367 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 0.8743/0.8743, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1486/1.023, allocations: 52.49 MB / 238.5 MB, free: 7.613 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.813e-06/1.813e-06, allocations: 0 / 239.8 MB, free: 6.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.976e-05/2.157e-05, allocations: 2.312 kB / 239.8 MB, free: 6.336 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01203/0.01205, allocations: 10.08 MB / 249.8 MB, free: 12.23 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008016/0.02007, allocations: 3.49 MB / 253.3 MB, free: 8.758 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00224/0.02231, allocations: 75.5 kB / 253.4 MB, free: 8.684 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002394/0.0247, allocations: 0.7895 MB / 254.2 MB, free: 7.891 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003396/0.0281, allocations: 0.9156 MB / 255.1 MB, free: 6.969 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001149/0.02924, allocations: 419.3 kB / 255.5 MB, free: 6.559 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003753/0.033, allocations: 2.855 MB / 258.4 MB, free: 3.691 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002181/0.03518, allocations: 1.344 MB / 259.7 MB, free: 2.258 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003949/0.03913, allocations: 2.324 MB / 262 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002406/0.04153, allocations: 1.383 MB / 263.4 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009314/0.04247, allocations: 327.9 kB / 263.7 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001144/0.04361, allocations: 415.9 kB / 264.1 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009355/0.04454, allocations: 0.7675 MB / 264.9 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001482/0.04603, allocations: 0.8422 MB / 265.8 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003316/0.04934, allocations: 2.231 MB / 268 MB, free: 9.949 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.566e-05/0.04936, allocations: 0 / 268 MB, free: 9.949 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.04936, allocations: 0 / 268 MB, free: 9.949 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.856e-05/0.04944, allocations: 0 / 268 MB, free: 9.949 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.005346/0.05478, allocations: 3.328 MB / 271.3 MB, free: 6.578 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.05483, allocations: 8.031 kB / 271.3 MB, free: 6.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001003/0.05583, allocations: 489.7 kB / 271.8 MB, free: 6.074 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002274/0.05811, allocations: 1.161 MB / 273 MB, free: 4.855 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/0.05825, allocations: 164.8 kB / 273.1 MB, free: 4.691 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003303/0.05858, allocations: 228.3 kB / 273.3 MB, free: 4.469 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002879/0.06146, allocations: 1.688 MB / 275 MB, free: 2.668 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.995e-05/0.06153, allocations: 7.938 kB / 275 MB, free: 2.66 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001944/0.06172, allocations: 95.97 kB / 275.1 MB, free: 2.566 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001278/0.06185, allocations: 108.3 kB / 275.2 MB, free: 2.457 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001569/0.06342, allocations: 0.6503 MB / 275.9 MB, free: 1.766 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01037/0.07379, allocations: 5.893 MB / 281.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.07498, allocations: 0.6484 MB / 282.4 MB, free: 10.96 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008421/0.07582, allocations: 447.3 kB / 282.9 MB, free: 10.52 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002234/0.07605, allocations: 52.97 kB / 282.9 MB, free: 10.47 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.308e-05/0.07609, allocations: 43.56 kB / 283 MB, free: 10.42 MB / 282.7 MB Notification: Performance of pre-optimization done (n=105): time 4.509e-06/0.0761, allocations: 4 kB / 283 MB, free: 10.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=122): time 0.006945/0.08304, allocations: 2.598 MB / 285.6 MB, free: 7.789 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.364e-05/0.08309, allocations: 72.28 kB / 285.6 MB, free: 7.703 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001222/0.08432, allocations: 1.054 MB / 286.7 MB, free: 6.633 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.101e-05/0.0844, allocations: 45.7 kB / 286.7 MB, free: 6.582 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00058/0.08498, allocations: 0.9403 MB / 287.7 MB, free: 5.629 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003399/0.08532, allocations: 444.1 kB / 288.1 MB, free: 5.191 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003758/0.08569, allocations: 263.4 kB / 288.4 MB, free: 4.93 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.324e-05/0.08579, allocations: 301.1 kB / 288.7 MB, free: 4.633 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003648/0.08615, allocations: 170.8 kB / 288.8 MB, free: 4.465 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005953/0.08675, allocations: 0.5876 MB / 289.4 MB, free: 3.695 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/0.08793, allocations: 0.9648 MB / 290.4 MB, free: 2.543 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.08794, allocations: 4 kB / 290.4 MB, free: 2.539 MB / 282.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.002064/0.09001, allocations: 1.05 MB / 291.4 MB, free: 1.465 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.278e-05/0.09004, allocations: 12 kB / 291.4 MB, free: 1.453 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/0.09006, allocations: 12 kB / 291.5 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007845/0.09085, allocations: 251.3 kB / 291.7 MB, free: 1.184 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/0.09196, allocations: 355.5 kB / 292 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003379/0.09534, allocations: 4.753 MB / 296.8 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007772/0.09612, allocations: 59.94 kB / 296.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.619e-05/0.09619, allocations: 55.98 kB / 296.9 MB, free: 11.69 MB / 298.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.0005083/0.0967, allocations: 200.3 kB / 297.1 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002197/0.09692, allocations: 139.9 kB / 297.2 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001141/0.09806, allocations: 0.8798 MB / 298.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.09807, allocations: 12 kB / 298.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.09808, allocations: 4 kB / 298.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.09809, allocations: 11.91 kB / 298.2 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003173/0.1013, allocations: 2.512 MB / 300.7 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/0.1013, allocations: 12.02 kB / 300.7 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005024/0.1018, allocations: 215.7 kB / 300.9 MB, free: 7.559 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004012/0.1022, allocations: 210.8 kB / 301.1 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006145/0.1028, allocations: 304 kB / 301.4 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.559e-05/0.1028, allocations: 35.97 kB / 301.4 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00347/0.1063, allocations: 5.947 MB / 307.4 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.1063, allocations: 4 kB / 307.4 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/0.1078, allocations: 1.307 MB / 308.7 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001793/0.108, allocations: 31.98 kB / 308.7 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003809/0.1084, allocations: 39.98 kB / 308.8 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001637/0.1085, allocations: 112.6 kB / 308.9 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.515e-05/0.1086, allocations: 27.98 kB / 308.9 MB, free: 15.07 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005013/0.1091, allocations: 0.5199 MB / 309.4 MB, free: 14.55 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1091, allocations: 4 kB / 309.4 MB, free: 14.54 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001188/0.1103, allocations: 480.1 kB / 309.9 MB, free: 14.07 MB / 314.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.0003004/0.1106, allocations: 184 kB / 310.1 MB, free: 13.89 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00132/0.1119, allocations: 1.212 MB / 311.3 MB, free: 12.64 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.276e-05/0.1119, allocations: 31.12 kB / 311.3 MB, free: 12.61 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009131/0.1129, allocations: 1.007 MB / 312.3 MB, free: 11.55 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002106/0.115, allocations: 4.068 MB / 316.4 MB, free: 6.676 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0148/0.1298, allocations: 3.955 MB / 320.3 MB, free: 2.613 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006006/0.1304, allocations: 0.5302 MB / 320.9 MB, free: 2.059 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007283/0.1311, allocations: 218.1 kB / 321.1 MB, free: 1.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007/0.1318, allocations: 427.1 kB / 321.5 MB, free: 1.414 MB / 314.7 MB Notification: Performance of SimCode: time 1.793e-06/0.1318, allocations: 0 / 321.5 MB, free: 1.414 MB / 314.7 MB Notification: Performance of Templates: time 0.146/0.2778, allocations: 26.94 MB / 348.4 MB, free: 68.77 MB / 330.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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1382991652935743]