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.002575/0.002575, allocations: 95.86 kB / 20.96 MB, free: 3.461 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.002996/0.002996, allocations: 149.1 kB / 24.26 MB, free: 168 kB / 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 1.564/1.564, allocations: 173.4 MB / 200.8 MB, free: 9.328 MB / 186.7 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 1.884e-06/1.884e-06, allocations: 0 / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.435e-05/3.624e-05, allocations: 2.312 kB / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01533/0.01537, allocations: 10.15 MB / 277.5 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008092/0.02346, allocations: 3.353 MB / 280.8 MB, free: 9.164 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001963/0.02542, allocations: 71.5 kB / 280.9 MB, free: 9.094 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002371/0.02779, allocations: 0.7684 MB / 281.7 MB, free: 8.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003644/0.03144, allocations: 0.9119 MB / 282.6 MB, free: 7.402 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.03258, allocations: 427.3 kB / 283 MB, free: 6.984 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004389/0.03697, allocations: 2.859 MB / 285.9 MB, free: 4.113 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002493/0.03946, allocations: 1.313 MB / 287.2 MB, free: 2.734 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003994/0.04345, allocations: 1.898 MB / 289.1 MB, free: 0.832 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1452/0.1887, allocations: 1.471 MB / 290.6 MB, free: 17.9 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001014/0.1897, allocations: 334.4 kB / 290.9 MB, free: 17.9 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001294/0.191, allocations: 430.5 kB / 291.3 MB, free: 17.9 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009884/0.192, allocations: 0.9897 MB / 292.3 MB, free: 17.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001583/0.1936, allocations: 1.041 MB / 293.3 MB, free: 17.9 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005292/0.1989, allocations: 4.468 MB / 297.8 MB, free: 17.69 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.1989, allocations: 0.6875 kB / 297.8 MB, free: 17.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1989, allocations: 1.5 kB / 297.8 MB, free: 17.69 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001261/0.199, allocations: 1.375 kB / 297.8 MB, free: 17.69 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.007185/0.2062, allocations: 3.447 MB / 301.3 MB, free: 16.22 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.2062, allocations: 10.05 kB / 301.3 MB, free: 16.22 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001201/0.2074, allocations: 0.5028 MB / 301.8 MB, free: 16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002976/0.2104, allocations: 1.537 MB / 303.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/0.2105, allocations: 169.5 kB / 303.5 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003212/0.2108, allocations: 227.7 kB / 303.7 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004153/0.215, allocations: 2.742 MB / 306.4 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.393e-05/0.215, allocations: 6.891 kB / 306.4 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002127/0.2153, allocations: 85.5 kB / 306.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001036/0.2154, allocations: 115.6 kB / 306.6 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003176/0.2185, allocations: 1.756 MB / 308.4 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01367/0.2322, allocations: 10.48 MB / 318.9 MB, free: 4.184 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001511/0.2337, allocations: 0.8192 MB / 319.7 MB, free: 3.359 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001398/0.2351, allocations: 0.6332 MB / 320.3 MB, free: 2.727 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002469/0.2354, allocations: 56.97 kB / 320.4 MB, free: 2.672 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.2354, allocations: 50.38 kB / 320.4 MB, free: 2.609 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 2.846e-06/0.2354, allocations: 0 / 320.4 MB, free: 2.609 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.01149/0.2469, allocations: 3.772 MB / 324.2 MB, free: 14.85 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.662e-05/0.247, allocations: 68.34 kB / 324.3 MB, free: 14.77 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004336/0.2513, allocations: 1.705 MB / 326 MB, free: 13.04 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002422/0.2515, allocations: 45.7 kB / 326 MB, free: 12.98 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001666/0.2532, allocations: 1.304 MB / 327.3 MB, free: 11.67 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008273/0.254, allocations: 485.9 kB / 327.8 MB, free: 11.2 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008287/0.2549, allocations: 329.1 kB / 328.1 MB, free: 10.88 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0005768/0.2554, allocations: 480.8 kB / 328.6 MB, free: 10.4 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.2568, allocations: 371.8 kB / 328.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002092/0.2589, allocations: 1.023 MB / 330 MB, free: 8.773 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003537/0.2624, allocations: 1.537 MB / 331.5 MB, free: 7.039 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.461e-05/0.2624, allocations: 4 kB / 331.5 MB, free: 7.035 MB / 282.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.005597/0.268, allocations: 1.716 MB / 333.2 MB, free: 5.391 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.3e-05/0.2681, allocations: 14.81 kB / 333.2 MB, free: 5.379 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.451e-05/0.2681, allocations: 12 kB / 333.3 MB, free: 5.367 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001522/0.2696, allocations: 286.2 kB / 333.5 MB, free: 5.078 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002034/0.2717, allocations: 348.2 kB / 333.9 MB, free: 4.758 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/0.2826, allocations: 6.932 MB / 340.8 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002153/0.2847, allocations: 99.86 kB / 340.9 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003471/0.2851, allocations: 67.98 kB / 341 MB, free: 13.35 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.002026/0.2871, allocations: 0.5832 MB / 341.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000915/0.288, allocations: 210.9 kB / 341.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005266/0.2933, allocations: 1.336 MB / 343.1 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.827e-05/0.2933, allocations: 12 kB / 343.1 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.36e-05/0.2933, allocations: 4 kB / 343.1 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.18e-05/0.2934, allocations: 7.969 kB / 343.1 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01453/0.3079, allocations: 3.919 MB / 347 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/0.3079, allocations: 4 kB / 347 MB, free: 7.203 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00147/0.3094, allocations: 215.2 kB / 347.2 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001856/0.3112, allocations: 319.7 kB / 347.6 MB, free: 6.684 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002012/0.3114, allocations: 35.98 kB / 347.6 MB, free: 6.648 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0108/0.3222, allocations: 8.681 MB / 356.3 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-06/0.3222, allocations: 7.562 kB / 356.3 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005373/0.3276, allocations: 2.024 MB / 358.3 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001242/0.3289, allocations: 305.9 kB / 358.6 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005225/0.3294, allocations: 35.98 kB / 358.6 MB, free: 11.08 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.3306, allocations: 71.92 kB / 358.7 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003099/0.3309, allocations: 108.4 kB / 358.8 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.331, allocations: 39.98 kB / 358.9 MB, free: 10.87 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002227/0.3332, allocations: 0.9962 MB / 359.9 MB, free: 9.875 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3332, allocations: 0 / 359.9 MB, free: 9.875 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002387/0.3356, allocations: 483.9 kB / 360.3 MB, free: 9.402 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%), (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.0004841/0.3361, allocations: 208.1 kB / 360.5 MB, free: 9.207 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003723/0.3398, allocations: 1.792 MB / 362.3 MB, free: 7.406 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/0.3398, allocations: 8.125 kB / 362.3 MB, free: 7.398 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002459/0.3423, allocations: 1.411 MB / 363.7 MB, free: 5.953 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002188/0.3445, allocations: 431.9 kB / 364.2 MB, free: 5.543 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008024/0.3525, allocations: 4.197 MB / 368.4 MB, free: 1.242 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001643/0.3541, allocations: 1.22 MB / 369.6 MB, free: 15.98 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001055/0.3552, allocations: 305.7 kB / 369.9 MB, free: 15.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003723/0.3556, allocations: 120.5 kB / 370 MB, free: 15.56 MB / 330.7 MB Notification: Performance of SimCode: time 9.62e-07/0.3556, allocations: 0 / 370 MB, free: 15.56 MB / 330.7 MB Notification: Performance of Templates: time 0.04944/0.405, allocations: 25.48 MB / 395.5 MB, free: 6.473 MB / 346.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","/var/lib/jenkins/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: 5.862907083937898]