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.001022/0.001022, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.00118/0.00118, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.9135/0.9135, allocations: 173.4 MB / 202.2 MB, free: 8.277 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.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.533e-06/1.533e-06, allocations: 0 / 269.2 MB, free: 9.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.361e-05/2.515e-05, allocations: 7.359 kB / 269.2 MB, free: 9.777 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01017/0.0102, allocations: 9.946 MB / 279.2 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006266/0.01646, allocations: 3.354 MB / 282.5 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001431/0.01789, allocations: 71.5 kB / 282.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001709/0.0196, allocations: 0.7529 MB / 283.3 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002249/0.02185, allocations: 0.9273 MB / 284.3 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007325/0.02258, allocations: 427.3 kB / 284.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00262/0.0252, allocations: 2.851 MB / 287.5 MB, free: 7.402 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001518/0.02672, allocations: 1.325 MB / 288.9 MB, free: 6.012 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002403/0.02912, allocations: 2.129 MB / 291 MB, free: 3.879 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001559/0.03068, allocations: 1.395 MB / 292.4 MB, free: 2.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005316/0.03122, allocations: 324 kB / 292.7 MB, free: 2.164 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005871/0.0318, allocations: 419.8 kB / 293.1 MB, free: 1.754 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005898/0.03239, allocations: 0.9387 MB / 294 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001079/0.03347, allocations: 1.013 MB / 295.1 MB, free: 15.79 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002319/0.03579, allocations: 2.375 MB / 297.4 MB, free: 13.41 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.03579, allocations: 0 / 297.4 MB, free: 13.41 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.03579, allocations: 0 / 297.4 MB, free: 13.41 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.541e-05/0.03588, allocations: 0 / 297.4 MB, free: 13.41 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.003674/0.03955, allocations: 3.063 MB / 300.5 MB, free: 10.3 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.03959, allocations: 8.031 kB / 300.5 MB, free: 10.29 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007138/0.0403, allocations: 0.4913 MB / 301 MB, free: 9.797 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001915/0.04222, allocations: 1.491 MB / 302.5 MB, free: 8.254 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.27e-05/0.04231, allocations: 164.8 kB / 302.7 MB, free: 8.09 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002199/0.04253, allocations: 224.3 kB / 302.9 MB, free: 7.871 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002017/0.04455, allocations: 1.668 MB / 304.5 MB, free: 6.082 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.837e-05/0.04461, allocations: 3.938 kB / 304.5 MB, free: 6.078 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001802/0.04479, allocations: 91.98 kB / 304.6 MB, free: 5.988 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001209/0.04491, allocations: 112.3 kB / 304.7 MB, free: 5.875 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.04627, allocations: 0.6595 MB / 305.4 MB, free: 5.176 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009336/0.05561, allocations: 7.259 MB / 312.7 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.05665, allocations: 0.6504 MB / 313.3 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007704/0.05742, allocations: 466.2 kB / 313.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001498/0.05757, allocations: 44.98 kB / 313.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/0.05761, allocations: 50.39 kB / 313.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=105): time 2.965e-06/0.05761, allocations: 0 / 313.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=122): time 0.005515/0.06312, allocations: 2.603 MB / 316.5 MB, free: 9.781 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/0.06316, allocations: 68.34 kB / 316.5 MB, free: 9.703 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001237/0.0644, allocations: 1.235 MB / 317.8 MB, free: 8.438 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.255e-05/0.06446, allocations: 45.7 kB / 317.8 MB, free: 8.387 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007167/0.06517, allocations: 1.226 MB / 319 MB, free: 7.148 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003061/0.06548, allocations: 464.1 kB / 319.5 MB, free: 6.691 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003668/0.06585, allocations: 285 kB / 319.8 MB, free: 6.402 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.06596, allocations: 476.8 kB / 320.2 MB, free: 5.934 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003197/0.06628, allocations: 175.8 kB / 320.4 MB, free: 5.762 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006492/0.06693, allocations: 0.7856 MB / 321.2 MB, free: 4.727 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.06804, allocations: 1.083 MB / 322.3 MB, free: 3.395 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.248e-06/0.06805, allocations: 7.984 kB / 322.3 MB, free: 3.387 MB / 298.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.002157/0.0702, allocations: 1.288 MB / 323.6 MB, free: 2.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.07023, allocations: 10.19 kB / 323.6 MB, free: 2.062 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/0.07025, allocations: 12 kB / 323.6 MB, free: 2.051 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006247/0.07087, allocations: 257.7 kB / 323.8 MB, free: 1.785 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008365/0.07171, allocations: 303.5 kB / 324.1 MB, free: 1.488 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004488/0.07619, allocations: 6.488 MB / 330.6 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000682/0.07688, allocations: 63.88 kB / 330.7 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.441e-05/0.07696, allocations: 51.98 kB / 330.7 MB, free: 10.55 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.0004781/0.07744, allocations: 248.3 kB / 331 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002694/0.07771, allocations: 210.9 kB / 331.2 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001596/0.0793, allocations: 1.024 MB / 332.2 MB, free: 9.035 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.07931, allocations: 12 kB / 332.2 MB, free: 9.023 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/0.07932, allocations: 4 kB / 332.2 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/0.07933, allocations: 11.91 kB / 332.2 MB, free: 9.008 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004244/0.08358, allocations: 2.989 MB / 335.2 MB, free: 5.879 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.08359, allocations: 4 kB / 335.2 MB, free: 5.875 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005894/0.08417, allocations: 195.7 kB / 335.4 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006729/0.08485, allocations: 270.4 kB / 335.7 MB, free: 5.402 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.5e-05/0.08492, allocations: 31.98 kB / 335.7 MB, free: 5.371 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0051/0.09002, allocations: 8.188 MB / 343.9 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.768e-06/0.09003, allocations: 4 kB / 343.9 MB, free: 12.72 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002005/0.09203, allocations: 1.538 MB / 345.4 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004394/0.09247, allocations: 262.8 kB / 345.7 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001551/0.09263, allocations: 39.92 kB / 345.7 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005094/0.09314, allocations: 43.98 kB / 345.8 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.09331, allocations: 104.7 kB / 345.9 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.14e-05/0.09338, allocations: 31.98 kB / 345.9 MB, free: 10.6 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006755/0.09405, allocations: 0.6796 MB / 346.6 MB, free: 9.922 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.09405, allocations: 0 / 346.6 MB, free: 9.922 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001083/0.09513, allocations: 471.9 kB / 347.1 MB, free: 9.461 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.0002825/0.09542, allocations: 206.9 kB / 347.3 MB, free: 9.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001406/0.09682, allocations: 1.412 MB / 348.7 MB, free: 7.781 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.09683, allocations: 8.062 kB / 348.7 MB, free: 7.773 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009111/0.09774, allocations: 1.195 MB / 349.9 MB, free: 6.508 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/0.09884, allocations: 447.3 kB / 350.3 MB, free: 6.082 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004676/0.1035, allocations: 3.971 MB / 354.3 MB, free: 1.996 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.104, allocations: 0.5848 MB / 354.9 MB, free: 1.379 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005056/0.1045, allocations: 217.9 kB / 355.1 MB, free: 1.16 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006397/0.1051, allocations: 477.9 kB / 355.5 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of SimCode: time 1.012e-06/0.1051, allocations: 0 / 355.5 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of Templates: time 0.1359/0.241, allocations: 26.57 MB / 382.1 MB, free: 61.39 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.7290129610337317]