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.002054/0.002054, allocations: 115.8 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001717/0.001717, allocations: 216.6 kB / 23.74 MB, free: 4.656 MB / 14.72 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 1.496/1.496, allocations: 230.6 MB / 257.5 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] 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.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.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.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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 43.94 kB / 378.3 MB, free: 2.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.3097, allocations: 53.36 MB / 431.6 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01325/0.3229, allocations: 10.46 MB / 442.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007486/0.3304, allocations: 3.503 MB / 445.6 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001462/0.3319, allocations: 75.5 kB / 445.7 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001893/0.3338, allocations: 0.8307 MB / 446.5 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002521/0.3363, allocations: 0.897 MB / 447.4 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009132/0.3372, allocations: 439.3 kB / 447.8 MB, free: 6.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003287/0.3405, allocations: 2.755 MB / 450.6 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001923/0.3424, allocations: 1.356 MB / 451.9 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001934/0.3444, allocations: 1.301 MB / 453.2 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002288/0.3466, allocations: 1.623 MB / 454.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000437/0.3471, allocations: 339.9 kB / 455.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007907/0.3479, allocations: 443.9 kB / 455.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000955/0.3488, allocations: 0.9543 MB / 456.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001542/0.3504, allocations: 1.509 MB / 458.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005296/0.3557, allocations: 4.406 MB / 462.5 MB, free: 7.875 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3557, allocations: 7.938 kB / 462.5 MB, free: 7.867 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.3557, allocations: 0 / 462.5 MB, free: 7.867 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.569e-05/0.3558, allocations: 0 / 462.5 MB, free: 7.867 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.006323/0.3621, allocations: 3.068 MB / 465.6 MB, free: 4.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.3621, allocations: 8.031 kB / 465.6 MB, free: 4.742 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008322/0.363, allocations: 331 kB / 465.9 MB, free: 4.418 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003034/0.366, allocations: 1.559 MB / 467.5 MB, free: 2.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001527/0.3661, allocations: 168.3 kB / 467.6 MB, free: 2.652 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003354/0.3665, allocations: 220 kB / 467.8 MB, free: 2.438 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004963/0.3714, allocations: 2.921 MB / 470.8 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.68e-05/0.3715, allocations: 7.938 kB / 470.8 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002053/0.3717, allocations: 95.98 kB / 470.9 MB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001396/0.3718, allocations: 108.3 kB / 471 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004328/0.3762, allocations: 2.434 MB / 473.4 MB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01443/0.3906, allocations: 8.861 MB / 482.3 MB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002212/0.3928, allocations: 1.192 MB / 483.4 MB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001771/0.3946, allocations: 0.9132 MB / 484.4 MB, free: 1.527 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002376/0.3948, allocations: 60.94 kB / 484.4 MB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/0.3949, allocations: 43.56 kB / 484.5 MB, free: 1.414 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.705e-06/0.3949, allocations: 0 / 484.5 MB, free: 1.414 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.0142/0.4091, allocations: 6.076 MB / 490.5 MB, free: 11.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.118e-05/0.4091, allocations: 72.33 kB / 490.6 MB, free: 11.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00236/0.4115, allocations: 1.566 MB / 492.2 MB, free: 9.656 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.337e-05/0.4116, allocations: 45.7 kB / 492.2 MB, free: 9.605 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009304/0.4125, allocations: 1.134 MB / 493.4 MB, free: 8.457 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003835/0.4129, allocations: 456.1 kB / 493.8 MB, free: 8.008 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004378/0.4133, allocations: 275.5 kB / 494.1 MB, free: 7.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.4135, allocations: 301.1 kB / 494.4 MB, free: 7.434 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.4147, allocations: 0.7066 MB / 495.1 MB, free: 6.727 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001586/0.4163, allocations: 1.138 MB / 496.2 MB, free: 5.402 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002925/0.4192, allocations: 1.967 MB / 498.2 MB, free: 3.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.4192, allocations: 4 kB / 498.2 MB, free: 3.246 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004305/0.4235, allocations: 2.456 MB / 0.4889 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.4235, allocations: 8 kB / 0.4889 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.054e-05/0.4236, allocations: 16 kB / 0.4889 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009786/0.4245, allocations: 421.4 kB / 0.4893 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.4258, allocations: 347.5 kB / 0.4897 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007475/0.4333, allocations: 6.836 MB / 0.4963 GB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/0.4348, allocations: 104 kB / 0.4964 GB, free: 8.711 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001564/0.4349, allocations: 60 kB / 0.4965 GB, free: 8.652 MB / 414.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.001364/0.4363, allocations: 0.7278 MB / 0.4972 GB, free: 7.914 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004094/0.4367, allocations: 178.9 kB / 0.4974 GB, free: 7.738 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004511/0.4412, allocations: 2.115 MB / 0.4994 GB, free: 5.598 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.504e-05/0.4412, allocations: 15.98 kB / 0.4995 GB, free: 5.582 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.4413, allocations: 4 kB / 0.4995 GB, free: 5.578 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.861e-05/0.4413, allocations: 11.91 kB / 0.4995 GB, free: 5.566 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009488/0.4508, allocations: 4.653 MB / 0.504 GB, free: 0.793 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.4508, allocations: 8.031 kB / 0.504 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.4518, allocations: 219.7 kB / 0.5042 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001191/0.453, allocations: 451 kB / 0.5047 GB, free: 120 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.4531, allocations: 35.98 kB / 0.5047 GB, free: 84 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009064/0.4622, allocations: 8.28 MB / 0.5128 GB, free: 7.344 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.4622, allocations: 4 kB / 0.5128 GB, free: 7.34 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005446/0.4676, allocations: 3.14 MB / 0.5158 GB, free: 4.121 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.4687, allocations: 330.7 kB / 0.5162 GB, free: 3.797 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000414/0.4691, allocations: 28 kB / 0.5162 GB, free: 3.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/0.4702, allocations: 87.89 kB / 0.5163 GB, free: 3.684 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002499/0.4704, allocations: 104.7 kB / 0.5164 GB, free: 3.582 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.102e-05/0.4705, allocations: 39.98 kB / 0.5164 GB, free: 3.543 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002096/0.4726, allocations: 1.074 MB / 0.5175 GB, free: 2.473 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4726, allocations: 0 / 0.5175 GB, free: 2.473 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001934/0.4746, allocations: 488.1 kB / 0.5179 GB, free: 1.996 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.0004421/0.475, allocations: 206 kB / 0.5181 GB, free: 1.789 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004095/0.4791, allocations: 2.148 MB / 0.5202 GB, free: 15.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.052e-06/0.4791, allocations: 4 kB / 0.5202 GB, free: 15.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002527/0.4816, allocations: 1.419 MB / 0.5216 GB, free: 14.12 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00258/0.4842, allocations: 486.3 kB / 0.5221 GB, free: 13.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01066/0.4949, allocations: 4.771 MB / 0.5267 GB, free: 8.812 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002286/0.4971, allocations: 1.871 MB / 0.5286 GB, free: 6.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001297/0.4984, allocations: 390.8 kB / 0.5289 GB, free: 6.523 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004602/0.4989, allocations: 123.4 kB / 0.5291 GB, free: 6.402 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/0.4989, allocations: 7.875 kB / 0.5291 GB, free: 6.395 MB / 446.1 MB Notification: Performance of Templates: time 0.3052/0.8041, allocations: 28.22 MB / 0.5566 GB, free: 88.54 MB / 446.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.146729898871854]