Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001423/0.001423, allocations: 118.6 kB / 18.5 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001441/0.001441, allocations: 202.6 kB / 21.45 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 230.2 MB / 254.5 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 67.89 kB / 373.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1184, allocations: 53.31 MB / 427.2 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.21/0.3285, allocations: 10.4 MB / 437.6 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005398/0.3339, allocations: 3.494 MB / 441.1 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001445/0.3353, allocations: 57.69 kB / 441.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001922/0.3373, allocations: 0.8289 MB / 441.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002715/0.34, allocations: 0.8776 MB / 442.8 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.341, allocations: 431.9 kB / 443.2 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003299/0.3443, allocations: 2.757 MB / 446 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002329/0.3467, allocations: 1.724 MB / 447.7 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002363/0.349, allocations: 1.275 MB / 449 MB, free: 96 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002942/0.352, allocations: 1.616 MB / 450.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000622/0.3526, allocations: 333.8 kB / 450.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001129/0.3537, allocations: 451.5 kB / 451.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001286/0.355, allocations: 0.9545 MB / 452.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002163/0.3572, allocations: 1.504 MB / 453.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00634/0.3635, allocations: 4.407 MB / 458.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3635, allocations: 4 kB / 458.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3635, allocations: 0 / 458.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001019/0.3636, allocations: 0 / 458.2 MB, free: 11.52 MB / 366.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.007425/0.371, allocations: 3.136 MB / 461.4 MB, free: 9.316 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3711, allocations: 9.344 kB / 461.4 MB, free: 9.316 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009742/0.3721, allocations: 342.5 kB / 461.7 MB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003014/0.3751, allocations: 1.632 MB / 463.4 MB, free: 7.957 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000185/0.3753, allocations: 170.4 kB / 463.5 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003732/0.3756, allocations: 224.5 kB / 463.7 MB, free: 7.797 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005956/0.3816, allocations: 2.916 MB / 466.7 MB, free: 6.055 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.113e-05/0.3816, allocations: 2.031 kB / 466.7 MB, free: 6.055 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002267/0.3819, allocations: 95.61 kB / 466.8 MB, free: 5.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001436/0.382, allocations: 118.9 kB / 466.9 MB, free: 5.953 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005361/0.3874, allocations: 2.432 MB / 469.3 MB, free: 4.711 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01658/0.404, allocations: 9.035 MB / 478.3 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002553/0.4065, allocations: 1.637 MB / 480 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001835/0.4083, allocations: 0.9235 MB / 480.9 MB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003315/0.4087, allocations: 203.2 kB / 481.1 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.749e-05/0.4087, allocations: 47.56 kB / 481.1 MB, free: 10.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.125e-06/0.4087, allocations: 0 / 481.1 MB, free: 10.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01605/0.4248, allocations: 6.591 MB / 487.7 MB, free: 3.441 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.348e-05/0.4248, allocations: 64.41 kB / 487.8 MB, free: 3.367 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002899/0.4277, allocations: 1.573 MB / 489.4 MB, free: 1.785 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000202/0.4279, allocations: 45.7 kB / 489.4 MB, free: 1.734 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001003/0.4289, allocations: 1.134 MB / 490.6 MB, free: 0.5859 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004905/0.4294, allocations: 452.2 kB / 491 MB, free: 144 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005265/0.43, allocations: 279.5 kB / 491.3 MB, free: 15.86 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.4301, allocations: 301.1 kB / 491.6 MB, free: 15.56 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001333/0.4315, allocations: 0.7066 MB / 492.3 MB, free: 14.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001619/0.4331, allocations: 1.15 MB / 493.4 MB, free: 13.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003034/0.4361, allocations: 1.967 MB / 495.4 MB, free: 11.38 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.4361, allocations: 4 kB / 495.4 MB, free: 11.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004839/0.441, allocations: 2.52 MB / 497.9 MB, free: 8.812 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.705e-05/0.441, allocations: 15.94 kB / 497.9 MB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.97e-05/0.441, allocations: 12 kB / 497.9 MB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001141/0.4422, allocations: 424.1 kB / 498.3 MB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.4435, allocations: 343.5 kB / 498.7 MB, free: 8.023 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007837/0.4514, allocations: 7.133 MB / 0.494 GB, free: 500 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001815/0.4532, allocations: 103.8 kB / 0.4941 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001511/0.4533, allocations: 67.98 kB / 0.4941 GB, free: 328 kB / 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.001593/0.4549, allocations: 0.7198 MB / 0.4948 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004105/0.4553, allocations: 182.9 kB / 0.495 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004189/0.4595, allocations: 2.186 MB / 0.4971 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.4595, allocations: 12 kB / 0.4972 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.4595, allocations: 4 kB / 0.4972 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.4595, allocations: 11.86 kB / 0.4972 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008687/0.4682, allocations: 4.762 MB / 0.5018 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.4682, allocations: 0 / 0.5018 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009499/0.4692, allocations: 228.1 kB / 0.502 GB, free: 8.016 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001218/0.4704, allocations: 452.7 kB / 0.5025 GB, free: 7.562 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.64e-05/0.4705, allocations: 35.98 kB / 0.5025 GB, free: 7.527 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009149/0.4797, allocations: 8.692 MB / 0.511 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.4797, allocations: 4 kB / 0.511 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005659/0.4853, allocations: 3.219 MB / 0.5141 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001081/0.4864, allocations: 415.8 kB / 0.5145 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002471/0.4866, allocations: 31.98 kB / 0.5146 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000937/0.4876, allocations: 84.78 kB / 0.5146 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002708/0.4879, allocations: 96.75 kB / 0.5147 GB, free: 10.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.868e-05/0.4879, allocations: 39.98 kB / 0.5148 GB, free: 10.29 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001782/0.4897, allocations: 1.071 MB / 0.5158 GB, free: 9.227 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4897, allocations: 0 / 0.5158 GB, free: 9.227 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001916/0.4916, allocations: 487.9 kB / 0.5163 GB, free: 8.75 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.0004371/0.4921, allocations: 204.9 kB / 0.5165 GB, free: 8.543 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004209/0.4963, allocations: 2.223 MB / 0.5187 GB, free: 6.266 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/0.4963, allocations: 8.062 kB / 0.5187 GB, free: 6.258 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00254/0.4988, allocations: 1.418 MB / 0.52 GB, free: 4.789 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002647/0.5015, allocations: 496.2 kB / 0.5205 GB, free: 4.328 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009674/0.5112, allocations: 4.732 MB / 0.5251 GB, free: 15.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001982/0.5131, allocations: 1.871 MB / 0.527 GB, free: 13.61 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001532/0.5147, allocations: 394.8 kB / 0.5273 GB, free: 13.22 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004114/0.5151, allocations: 123.4 kB / 0.5275 GB, free: 13.1 MB / 446.1 MB Notification: Performance of SimCode: time 2.004e-06/0.5151, allocations: 7.938 kB / 0.5275 GB, free: 13.09 MB / 446.1 MB Notification: Performance of Templates: time 0.05461/0.5697, allocations: 27.3 MB / 0.5541 GB, free: 1.988 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.89876033179462]