Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001052, allocations: 110.9 kB / 16.92 MB, free: 5.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009834/0.0009834, allocations: 189.6 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009967/0.0009968, allocations: 43.64 kB / 300.6 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08784/0.08885, allocations: 49.44 MB / 350.1 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01085/0.09974, allocations: 9.63 MB / 359.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005994/0.1058, allocations: 3.088 MB / 362.8 MB, free: 7.656 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001118/0.1069, allocations: 63.75 kB / 362.8 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00149/0.1085, allocations: 0.6673 MB / 363.5 MB, free: 6.922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001838/0.1103, allocations: 0.7726 MB / 364.3 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007213/0.111, allocations: 383.5 kB / 364.6 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00216/0.1132, allocations: 2.531 MB / 367.2 MB, free: 3.234 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002286/0.1155, allocations: 2.334 MB / 369.5 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1855/0.301, allocations: 1.171 MB / 370.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00251/0.3036, allocations: 1.497 MB / 372.2 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00059/0.3042, allocations: 318 kB / 372.5 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009262/0.3051, allocations: 417.4 kB / 372.9 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009098/0.3061, allocations: 0.8971 MB / 373.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001262/0.3073, allocations: 1.415 MB / 375.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00404/0.3114, allocations: 4.105 MB / 379.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.3114, allocations: 0.9688 kB / 379.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3114, allocations: 0 / 379.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.937e-05/0.3115, allocations: 0 / 379.3 MB, free: 11.91 MB / 302.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.005434/0.3169, allocations: 2.901 MB / 382.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.317, allocations: 11.69 kB / 382.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007286/0.3177, allocations: 288.1 kB / 382.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002185/0.3199, allocations: 1.497 MB / 384 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001295/0.32, allocations: 164 kB / 384.2 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003135/0.3204, allocations: 220.4 kB / 384.4 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004636/0.325, allocations: 2.788 MB / 387.2 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.5e-05/0.3251, allocations: 15.55 kB / 387.2 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000206/0.3253, allocations: 87.28 kB / 387.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001548/0.3254, allocations: 103.8 kB / 387.4 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003598/0.329, allocations: 2.349 MB / 389.7 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01142/0.3405, allocations: 8.597 MB / 398.3 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002103/0.3426, allocations: 1.698 MB / 400 MB, free: 15.31 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001551/0.3442, allocations: 0.9794 MB / 401 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002939/0.3445, allocations: 203.4 kB / 401.2 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.3445, allocations: 42.72 kB / 401.2 MB, free: 14.61 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.895e-06/0.3445, allocations: 0 / 401.2 MB, free: 14.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01345/0.358, allocations: 6.225 MB / 407.5 MB, free: 8.621 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.006e-05/0.3581, allocations: 64.41 kB / 407.5 MB, free: 8.547 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002459/0.3605, allocations: 1.441 MB / 409 MB, free: 7.094 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001479/0.3607, allocations: 41.7 kB / 409 MB, free: 7.047 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008261/0.3615, allocations: 1.055 MB / 410.1 MB, free: 5.984 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003834/0.3619, allocations: 400.3 kB / 410.5 MB, free: 5.598 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004252/0.3624, allocations: 251.5 kB / 410.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.3626, allocations: 365.9 kB / 411.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.3637, allocations: 0.6832 MB / 411.7 MB, free: 4.301 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001393/0.3651, allocations: 1.075 MB / 412.8 MB, free: 3.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002606/0.3677, allocations: 1.868 MB / 414.7 MB, free: 1.086 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/0.3678, allocations: 4 kB / 414.7 MB, free: 1.082 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004081/0.3718, allocations: 2.423 MB / 417.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.3719, allocations: 12 kB / 417.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/0.3719, allocations: 12 kB / 417.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009792/0.3729, allocations: 413.8 kB / 417.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/0.3741, allocations: 330.1 kB / 417.9 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006993/0.3811, allocations: 7.039 MB / 424.9 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/0.3826, allocations: 107.8 kB / 425 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.3827, allocations: 56.14 kB / 425.1 MB, free: 6.371 MB / 334.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.001311/0.384, allocations: 0.6977 MB / 425.8 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002825/0.3843, allocations: 162 kB / 425.9 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003648/0.388, allocations: 2.128 MB / 428 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/0.388, allocations: 12 kB / 428.1 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.388, allocations: 4 kB / 428.1 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.388, allocations: 7.969 kB / 428.1 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007992/0.396, allocations: 4.584 MB / 432.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/0.396, allocations: 4 kB / 432.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008668/0.3969, allocations: 214.4 kB / 432.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001157/0.3981, allocations: 446.8 kB / 433.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.196e-05/0.3982, allocations: 35.98 kB / 433.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008364/0.4066, allocations: 8.626 MB / 442 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.4066, allocations: 4.094 kB / 442 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004996/0.4116, allocations: 3.106 MB / 445.1 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009613/0.4126, allocations: 375 kB / 445.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004774/0.4131, allocations: 28 kB / 445.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001168/0.4143, allocations: 79.91 kB / 445.5 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002401/0.4145, allocations: 103.9 kB / 445.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.815e-05/0.4146, allocations: 39.98 kB / 445.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001778/0.4164, allocations: 0.9847 MB / 446.7 MB, free: 80 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4164, allocations: 0 / 446.7 MB, free: 80 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.001963/0.4184, allocations: 456.5 kB / 447.1 MB, free: 15.63 MB / 366.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.0004278/0.4188, allocations: 205.2 kB / 447.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004834/0.4237, allocations: 2.697 MB / 450 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.4237, allocations: 4 kB / 450 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002332/0.426, allocations: 1.436 MB / 451.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002184/0.4282, allocations: 431.4 kB / 451.9 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008311/0.4365, allocations: 4.483 MB / 456.4 MB, free: 6.324 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001971/0.4385, allocations: 1.795 MB / 458.1 MB, free: 4.496 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001226/0.4398, allocations: 369.6 kB / 458.5 MB, free: 4.129 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004439/0.4402, allocations: 119.4 kB / 458.6 MB, free: 4.012 MB / 366.1 MB Notification: Performance of SimCode: time 1.432e-06/0.4402, allocations: 0 / 458.6 MB, free: 4.012 MB / 366.1 MB Notification: Performance of Templates: time 0.04606/0.4863, allocations: 24.37 MB / 483 MB, free: 11.96 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches