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.001577/0.001577, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001695/0.001695, allocations: 184.9 kB / 24.45 MB, free: 3.961 MB / 14.72 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.423/1.423, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|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.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 55.92 kB / 371.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2301, allocations: 52.18 MB / 423.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.0124/0.2425, allocations: 9.114 MB / 433 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006346/0.2488, allocations: 3.233 MB / 436.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001096/0.2499, allocations: 71.5 kB / 436.3 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001811/0.2517, allocations: 0.7608 MB / 437 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002151/0.2539, allocations: 0.8854 MB / 437.9 MB, free: 324 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008396/0.2547, allocations: 419.5 kB / 438.3 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003132/0.2578, allocations: 2.753 MB / 441.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001914/0.2598, allocations: 1.301 MB / 442.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00174/0.2615, allocations: 1.289 MB / 443.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002173/0.2637, allocations: 1.521 MB / 445.2 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005315/0.2642, allocations: 332 kB / 445.5 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008388/0.265, allocations: 431.8 kB / 445.9 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009805/0.266, allocations: 0.9543 MB / 446.9 MB, free: 7.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001384/0.2674, allocations: 1.214 MB / 448.1 MB, free: 6.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004906/0.2723, allocations: 4.427 MB / 452.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2723, allocations: 0 / 452.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2723, allocations: 0 / 452.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.863e-05/0.2724, allocations: 0 / 452.5 MB, free: 1.59 MB / 350.1 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.006133/0.2785, allocations: 3.053 MB / 455.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.2786, allocations: 8.031 kB / 455.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007831/0.2793, allocations: 327 kB / 455.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003205/0.2826, allocations: 1.559 MB / 457.5 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001606/0.2827, allocations: 168.4 kB / 457.6 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003612/0.2831, allocations: 227.9 kB / 457.8 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005232/0.2883, allocations: 3.017 MB / 460.9 MB, free: 9.043 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.228e-05/0.2884, allocations: 4 kB / 460.9 MB, free: 9.039 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002135/0.2886, allocations: 88 kB / 460.9 MB, free: 8.953 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001383/0.2887, allocations: 112.3 kB / 461.1 MB, free: 8.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004502/0.2932, allocations: 2.43 MB / 463.5 MB, free: 6.395 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01433/0.3076, allocations: 7.834 MB / 471.3 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002281/0.3098, allocations: 1.178 MB / 472.5 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001843/0.3117, allocations: 0.9209 MB / 473.4 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002452/0.3119, allocations: 52.91 kB / 473.5 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.312, allocations: 51.55 kB / 473.5 MB, free: 12.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.965e-06/0.312, allocations: 0 / 473.5 MB, free: 12.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01476/0.3267, allocations: 6.055 MB / 479.6 MB, free: 6.004 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.3268, allocations: 64.41 kB / 479.6 MB, free: 5.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002326/0.3291, allocations: 1.417 MB / 481.1 MB, free: 4.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001918/0.3293, allocations: 45.7 kB / 481.1 MB, free: 4.449 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009664/0.3303, allocations: 1.141 MB / 482.2 MB, free: 3.297 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000429/0.3307, allocations: 448.2 kB / 482.7 MB, free: 2.855 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004677/0.3312, allocations: 275.5 kB / 482.9 MB, free: 2.578 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.3313, allocations: 301.1 kB / 483.2 MB, free: 2.281 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001334/0.3327, allocations: 0.7105 MB / 484 MB, free: 1.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001637/0.3343, allocations: 1.142 MB / 485.1 MB, free: 252 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003006/0.3373, allocations: 1.971 MB / 487.1 MB, free: 14.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.097e-05/0.3373, allocations: 4 kB / 487.1 MB, free: 14.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004488/0.3418, allocations: 2.429 MB / 489.5 MB, free: 11.64 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/0.3418, allocations: 19.97 kB / 489.5 MB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.272e-05/0.3418, allocations: 12 kB / 489.5 MB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/0.3429, allocations: 423 kB / 489.9 MB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/0.3442, allocations: 351.4 kB / 490.3 MB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007675/0.3519, allocations: 6.706 MB / 497 MB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/0.3532, allocations: 107.8 kB / 497.1 MB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.3533, allocations: 64 kB / 497.2 MB, free: 3.664 MB / 398.1 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.001232/0.3546, allocations: 0.7092 MB / 497.9 MB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002988/0.3549, allocations: 170.9 kB / 498 MB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004004/0.3589, allocations: 2.098 MB / 0.4884 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.3589, allocations: 12 kB / 0.4884 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.3589, allocations: 4.094 kB / 0.4884 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.621e-05/0.3589, allocations: 11.95 kB / 0.4884 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008458/0.3674, allocations: 4.118 MB / 0.4925 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/0.3674, allocations: 8.094 kB / 0.4925 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/0.3684, allocations: 227.6 kB / 0.4927 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001219/0.3696, allocations: 451 kB / 0.4931 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.823e-05/0.3697, allocations: 31.98 kB / 0.4931 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009135/0.3788, allocations: 8.136 MB / 0.5011 GB, free: 3.137 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.3788, allocations: 4 kB / 0.5011 GB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005803/0.3846, allocations: 3.131 MB / 0.5042 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001062/0.3857, allocations: 318.8 kB / 0.5045 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002666/0.386, allocations: 28 kB / 0.5045 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009324/0.3869, allocations: 91.83 kB / 0.5046 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00026/0.3872, allocations: 104.8 kB / 0.5047 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-05/0.3873, allocations: 39.94 kB / 0.5047 GB, free: 15.35 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001542/0.3888, allocations: 0.9494 MB / 0.5056 GB, free: 14.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3888, allocations: 0 / 0.5056 GB, free: 14.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001759/0.3906, allocations: 487.9 kB / 0.5061 GB, free: 13.93 MB / 430.1 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%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004094/0.391, allocations: 194.9 kB / 0.5063 GB, free: 13.73 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003995/0.395, allocations: 2.148 MB / 0.5084 GB, free: 11.54 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.395, allocations: 320 / 0.5084 GB, free: 11.54 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002647/0.3976, allocations: 1.426 MB / 0.5098 GB, free: 10.06 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002086/0.3997, allocations: 416.5 kB / 0.5102 GB, free: 9.66 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008509/0.4082, allocations: 4.812 MB / 0.5149 GB, free: 4.762 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001619/0.4098, allocations: 1.273 MB / 0.5161 GB, free: 3.449 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005342/0.4104, allocations: 127.4 kB / 0.5162 GB, free: 3.324 MB / 430.1 MB Notification: Performance of SimCode: time 1.343e-06/0.4104, allocations: 0 / 0.5162 GB, free: 3.324 MB / 430.1 MB Notification: Performance of Templates: time 0.2523/0.6627, allocations: 73.81 MB / 0.5883 GB, free: 60.72 MB / 446.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.619739091955125]