Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.0009584/0.0009584, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001534/0.001534, allocations: 164.9 kB / 25.61 MB, free: 8.902 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.892/0.892, allocations: 177.1 MB / 206 MB, free: 4.5 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.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.1.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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 274.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.958e-05/2.113e-05, allocations: 2.312 kB / 274.2 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01191/0.01193, allocations: 9.993 MB / 284.2 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007994/0.01992, allocations: 3.394 MB / 287.6 MB, free: 6.977 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002135/0.02206, allocations: 75.5 kB / 287.7 MB, free: 6.902 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002552/0.02461, allocations: 0.7684 MB / 288.4 MB, free: 6.129 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003104/0.02771, allocations: 0.9273 MB / 289.4 MB, free: 5.195 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009759/0.02869, allocations: 423.3 kB / 289.8 MB, free: 4.781 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003028/0.03172, allocations: 2.855 MB / 292.6 MB, free: 1.914 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00196/0.03368, allocations: 1.313 MB / 293.9 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002994/0.03667, allocations: 2.164 MB / 296.1 MB, free: 14.37 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002188/0.03886, allocations: 1.391 MB / 297.5 MB, free: 12.97 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006921/0.03955, allocations: 324 kB / 297.8 MB, free: 12.66 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008522/0.0404, allocations: 423.8 kB / 298.2 MB, free: 12.24 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008688/0.04127, allocations: 0.9387 MB / 299.2 MB, free: 11.3 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00157/0.04284, allocations: 1.017 MB / 300.2 MB, free: 10.28 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00321/0.04605, allocations: 2.379 MB / 302.6 MB, free: 7.895 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.04606, allocations: 4 kB / 302.6 MB, free: 7.891 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.04606, allocations: 0 / 302.6 MB, free: 7.891 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.674e-05/0.04612, allocations: 0 / 302.6 MB, free: 7.891 MB / 282.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.004942/0.05106, allocations: 3.063 MB / 305.6 MB, free: 4.773 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.0511, allocations: 12.03 kB / 305.6 MB, free: 4.762 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001105/0.0522, allocations: 0.5068 MB / 306.1 MB, free: 4.254 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002344/0.05455, allocations: 1.483 MB / 307.6 MB, free: 2.719 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.05469, allocations: 168.8 kB / 307.8 MB, free: 2.551 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003271/0.05502, allocations: 220.3 kB / 308 MB, free: 2.336 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002959/0.05797, allocations: 1.664 MB / 309.7 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.503e-05/0.05804, allocations: 7.938 kB / 309.7 MB, free: 0.543 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002059/0.05825, allocations: 88 kB / 309.8 MB, free: 468 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001362/0.05838, allocations: 116.3 kB / 309.9 MB, free: 348 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001707/0.06009, allocations: 0.6557 MB / 310.5 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01187/0.07196, allocations: 7.267 MB / 317.8 MB, free: 8.098 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.07333, allocations: 0.6497 MB / 318.5 MB, free: 7.445 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009682/0.0743, allocations: 454.2 kB / 318.9 MB, free: 7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002027/0.0745, allocations: 52.97 kB / 319 MB, free: 6.949 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.459e-05/0.07454, allocations: 46.39 kB / 319 MB, free: 6.891 MB / 298.7 MB Notification: Performance of pre-optimization done (n=105): time 3.958e-06/0.07455, allocations: 7.938 kB / 319 MB, free: 6.883 MB / 298.7 MB Notification: Performance of matching and sorting (n=122): time 0.005737/0.08028, allocations: 2.61 MB / 321.6 MB, free: 4.238 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.694e-05/0.08032, allocations: 64.41 kB / 321.7 MB, free: 4.164 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001092/0.08141, allocations: 1.24 MB / 322.9 MB, free: 2.895 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.148e-05/0.08147, allocations: 49.64 kB / 323 MB, free: 2.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008102/0.08228, allocations: 1.234 MB / 324.2 MB, free: 1.594 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003126/0.0826, allocations: 456.1 kB / 324.6 MB, free: 1.145 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002872/0.08288, allocations: 285 kB / 324.9 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.08299, allocations: 476.8 kB / 325.4 MB, free: 396 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002412/0.08323, allocations: 175.8 kB / 325.6 MB, free: 220 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005006/0.08373, allocations: 0.7856 MB / 326.3 MB, free: 15.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.08484, allocations: 1.091 MB / 327.4 MB, free: 13.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.852e-06/0.08485, allocations: 4 kB / 327.4 MB, free: 13.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001539/0.08639, allocations: 1.288 MB / 328.7 MB, free: 12.53 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.08641, allocations: 12 kB / 328.7 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.08643, allocations: 12 kB / 328.8 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004934/0.08692, allocations: 242.8 kB / 329 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006316/0.08755, allocations: 315.5 kB / 329.3 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004006/0.09156, allocations: 6.483 MB / 335.8 MB, free: 5.125 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006666/0.09222, allocations: 59.92 kB / 335.8 MB, free: 5.066 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.462e-05/0.09231, allocations: 55.98 kB / 335.9 MB, free: 5.012 MB / 314.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.0004824/0.09279, allocations: 244.3 kB / 336.1 MB, free: 4.762 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002714/0.09306, allocations: 214.9 kB / 336.3 MB, free: 4.551 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001794/0.09486, allocations: 1.024 MB / 337.4 MB, free: 3.492 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/0.09487, allocations: 15.98 kB / 337.4 MB, free: 3.477 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.09487, allocations: 4 kB / 337.4 MB, free: 3.473 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.09489, allocations: 11.86 kB / 337.4 MB, free: 3.461 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004549/0.09944, allocations: 2.988 MB / 340.4 MB, free: 336 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.09944, allocations: 7.984 kB / 340.4 MB, free: 328 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000597/0.1, allocations: 184.2 kB / 340.6 MB, free: 144 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007011/0.1007, allocations: 281 kB / 340.8 MB, free: 15.85 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.605e-05/0.1008, allocations: 31.98 kB / 340.9 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004968/0.1058, allocations: 8.201 MB / 349.1 MB, free: 7.168 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.698e-06/0.1058, allocations: 4 kB / 349.1 MB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002151/0.1079, allocations: 1.534 MB / 350.6 MB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004804/0.1084, allocations: 258.8 kB / 350.9 MB, free: 5.273 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/0.1086, allocations: 35.98 kB / 350.9 MB, free: 5.238 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005177/0.1091, allocations: 51.97 kB / 351 MB, free: 5.188 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.1093, allocations: 96.7 kB / 351 MB, free: 5.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-05/0.1093, allocations: 31.98 kB / 351.1 MB, free: 5.059 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000675/0.11, allocations: 0.6837 MB / 351.8 MB, free: 4.375 MB / 330.7 MB Notification: Performance of sort global known variables: time 2e-07/0.11, allocations: 0 / 351.8 MB, free: 4.375 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001435/0.1115, allocations: 479.9 kB / 352.2 MB, free: 3.906 MB / 330.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.0003054/0.1118, allocations: 195 kB / 352.4 MB, free: 3.703 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001716/0.1135, allocations: 1.419 MB / 353.8 MB, free: 2.234 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.1135, allocations: 0 / 353.8 MB, free: 2.234 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.1147, allocations: 1.21 MB / 355.1 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001384/0.1161, allocations: 438.8 kB / 355.5 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1169/0.233, allocations: 3.972 MB / 359.5 MB, free: 77.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005305/0.2335, allocations: 0.5944 MB / 360 MB, free: 76.91 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005737/0.2341, allocations: 215.5 kB / 360.3 MB, free: 76.86 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000668/0.2347, allocations: 476.5 kB / 360.7 MB, free: 76.8 MB / 330.7 MB Notification: Performance of SimCode: time 1.433e-06/0.2347, allocations: 0 / 360.7 MB, free: 76.8 MB / 330.7 MB Notification: Performance of Templates: time 0.02821/0.2629, allocations: 26.71 MB / 387.4 MB, free: 58.3 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.5874484539963305]