Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.002033/0.002033, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002535/0.002535, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.504/1.504, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 51.91 kB / 373.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.102, allocations: 53.33 MB / 426.8 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.2269/0.3289, allocations: 9.706 MB / 436.5 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006447/0.3354, allocations: 3.16 MB / 439.7 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001401/0.3368, allocations: 76.59 kB / 439.8 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.3384, allocations: 0.716 MB / 440.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00256/0.341, allocations: 0.8036 MB / 441.3 MB, free: 3.773 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.342, allocations: 392.8 kB / 441.7 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003655/0.3456, allocations: 2.568 MB / 444.2 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002532/0.3482, allocations: 1.67 MB / 445.9 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002702/0.3509, allocations: 1.223 MB / 447.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002895/0.3538, allocations: 1.538 MB / 448.7 MB, free: 192 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007421/0.3545, allocations: 317.8 kB / 449 MB, free: 192 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001335/0.3558, allocations: 422.4 kB / 449.4 MB, free: 164 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001155/0.357, allocations: 0.9137 MB / 450.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002143/0.3591, allocations: 1.414 MB / 451.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007574/0.3667, allocations: 4.177 MB / 455.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.3667, allocations: 0 / 455.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3667, allocations: 0 / 455.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001601/0.3669, allocations: 1.25 kB / 455.9 MB, free: 12.79 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.008223/0.3751, allocations: 2.984 MB / 458.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.3752, allocations: 9.031 kB / 458.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001106/0.3763, allocations: 306.8 kB / 459.2 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003226/0.3795, allocations: 1.553 MB / 460.7 MB, free: 9.406 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001619/0.3796, allocations: 166.4 kB / 460.9 MB, free: 9.324 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003474/0.38, allocations: 213.7 kB / 461.1 MB, free: 9.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005636/0.3856, allocations: 2.797 MB / 463.9 MB, free: 7.574 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-05/0.3857, allocations: 7.344 kB / 463.9 MB, free: 7.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002376/0.3859, allocations: 86.11 kB / 464 MB, free: 7.504 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001608/0.3861, allocations: 104.2 kB / 464.1 MB, free: 7.484 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004824/0.3909, allocations: 2.348 MB / 466.4 MB, free: 6.281 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01515/0.4061, allocations: 8.524 MB / 475 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002776/0.4088, allocations: 1.639 MB / 476.6 MB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001862/0.4107, allocations: 0.9036 MB / 477.5 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003253/0.411, allocations: 207.2 kB / 477.7 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.944e-05/0.4111, allocations: 43.56 kB / 477.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 2.454e-06/0.4111, allocations: 0 / 477.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01556/0.4266, allocations: 6.256 MB / 484 MB, free: 6.594 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.608e-05/0.4267, allocations: 64.41 kB / 484.1 MB, free: 6.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002595/0.4293, allocations: 1.441 MB / 485.5 MB, free: 5.062 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001036/0.4294, allocations: 45.7 kB / 485.6 MB, free: 5.012 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009327/0.4303, allocations: 1.075 MB / 486.6 MB, free: 3.926 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004132/0.4307, allocations: 428.4 kB / 487.1 MB, free: 3.504 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004726/0.4312, allocations: 259.5 kB / 487.3 MB, free: 3.242 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.4314, allocations: 357.9 kB / 487.7 MB, free: 2.887 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001235/0.4326, allocations: 0.691 MB / 488.4 MB, free: 2.195 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001582/0.4342, allocations: 1.073 MB / 489.4 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002984/0.4372, allocations: 1.864 MB / 491.3 MB, free: 14.94 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.4372, allocations: 8 kB / 491.3 MB, free: 14.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004834/0.4421, allocations: 2.422 MB / 493.7 MB, free: 12.47 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.087e-05/0.4421, allocations: 8.625 kB / 493.7 MB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.247e-05/0.4421, allocations: 12 kB / 493.7 MB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001222/0.4433, allocations: 415.3 kB / 494.1 MB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.4446, allocations: 327.5 kB / 494.5 MB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008025/0.4527, allocations: 7.043 MB / 0.4898 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001797/0.4545, allocations: 107.3 kB / 0.4899 GB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/0.4546, allocations: 60 kB / 0.4899 GB, free: 4.098 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.001539/0.4561, allocations: 0.6885 MB / 0.4906 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003541/0.4565, allocations: 166.9 kB / 0.4907 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004191/0.4607, allocations: 2.123 MB / 0.4928 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.506e-05/0.4607, allocations: 12.61 kB / 0.4928 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.707e-06/0.4607, allocations: 4 kB / 0.4928 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/0.4607, allocations: 3.984 kB / 0.4928 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009213/0.4699, allocations: 4.559 MB / 0.4973 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/0.4699, allocations: 4.406 kB / 0.4973 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.4709, allocations: 219.7 kB / 0.4975 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001317/0.4723, allocations: 448.2 kB / 0.4979 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001187/0.4724, allocations: 31.98 kB / 0.498 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01015/0.4825, allocations: 8.631 MB / 0.5064 GB, free: 2.484 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.4825, allocations: 4 kB / 0.5064 GB, free: 2.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006423/0.489, allocations: 3.096 MB / 0.5094 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001247/0.4902, allocations: 393.1 kB / 0.5098 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006238/0.4908, allocations: 31.98 kB / 0.5098 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/0.4923, allocations: 83.91 kB / 0.5099 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003134/0.4926, allocations: 92.75 kB / 0.51 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/0.4927, allocations: 35.98 kB / 0.51 GB, free: 14.64 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001906/0.4946, allocations: 0.9927 MB / 0.511 GB, free: 13.65 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4946, allocations: 0 / 0.511 GB, free: 13.65 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002311/0.4969, allocations: 463.9 kB / 0.5114 GB, free: 13.2 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.0004505/0.4973, allocations: 204.6 kB / 0.5116 GB, free: 13 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004178/0.5015, allocations: 2.162 MB / 0.5137 GB, free: 10.78 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.5015, allocations: 3.938 kB / 0.5137 GB, free: 10.77 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002595/0.5041, allocations: 1.388 MB / 0.5151 GB, free: 9.336 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002362/0.5065, allocations: 420.4 kB / 0.5155 GB, free: 8.945 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00833/0.5148, allocations: 4.517 MB / 0.5199 GB, free: 4.348 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001792/0.5166, allocations: 1.803 MB / 0.5217 GB, free: 2.508 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00103/0.5176, allocations: 369.6 kB / 0.522 GB, free: 2.141 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003634/0.518, allocations: 111.4 kB / 0.5221 GB, free: 2.031 MB / 430.1 MB Notification: Performance of SimCode: time 9.52e-07/0.518, allocations: 0 / 0.5221 GB, free: 2.031 MB / 430.1 MB Notification: Performance of Templates: time 0.05174/0.5697, allocations: 25.2 MB / 0.5467 GB, free: 9.051 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.909202292561531]